Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7FBD71739A for ; Sat, 1 Nov 2014 13:59:14 +0000 (UTC) Received: (qmail 37313 invoked by uid 500); 1 Nov 2014 13:32:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 37287 invoked by uid 500); 1 Nov 2014 13:32:34 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 37277 invoked by uid 99); 1 Nov 2014 13:32:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Nov 2014 13:32:34 +0000 Date: Sat, 1 Nov 2014 13:32:34 +0000 (UTC) From: "Marcin Cinik (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-2507) Query compiler assumes bad parameter type for ? is null expression MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-2507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14193160#comment-14193160 ] Marcin Cinik commented on DERBY-2507: ------------------------------------- reproducible in 10.10.1.1 embeeded as well > Query compiler assumes bad parameter type for ? is null expression > ------------------------------------------------------------------ > > Key: DERBY-2507 > URL: https://issues.apache.org/jira/browse/DERBY-2507 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.2.2.0 > Reporter: Xavier Hanin > Labels: derby_triage10_5_2 > > When using '? is null' in a prepared Statement, the compiler assumes ? as VARCHAR parameter, and thus fails if you bind a VARBINARY object to the parameter: > org.apache.derby.impl.jdbc.EmbedSQLException: An attempt was made to get a data value of type 'VARCHAR' from a data value of type 'VARBINARY' > In Derby 10.2..2.0, only the embededded driver has the problem, the client driver works properly. > See this thread for more details: > http://mail-archive.com/derby-user%40db.apache.org/msg06503.html -- This message was sent by Atlassian JIRA (v6.3.4#6332)