Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 42084 invoked from network); 11 Jan 2011 11:02:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jan 2011 11:02:29 -0000 Received: (qmail 84176 invoked by uid 500); 11 Jan 2011 11:02:29 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 83957 invoked by uid 500); 11 Jan 2011 11:02:26 -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 83942 invoked by uid 99); 11 Jan 2011 11:02:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jan 2011 11:02:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jan 2011 11:02:25 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0BB254v003076 for ; Tue, 11 Jan 2011 11:02:05 GMT Message-ID: <23033388.280081294743725262.JavaMail.jira@thor> Date: Tue, 11 Jan 2011 06:02:05 -0500 (EST) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4965) Boolean to char conversion results in integer In-Reply-To: <14877845.279551294741785543.JavaMail.jira@thor> 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-4965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-4965: -------------------------------------- Issue & fix info: [Repro attached] > Boolean to char conversion results in integer > --------------------------------------------- > > Key: DERBY-4965 > URL: https://issues.apache.org/jira/browse/DERBY-4965 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.7.1.1 > Reporter: Knut Anders Hatlen > > Seen when running the Java EE CTS on Derby 10.7.1.1. The following code results in "1" being printed, whereas the expected result is "true": > PreparedStatement ps = c.prepareStatement("values cast(? as char(10))"); > ps.setObject(1, Boolean.TRUE, Types.CHAR); > ResultSet rs = ps.executeQuery(); > rs.next(); > System.out.println(rs.getString(1)); > Same seen when using VARCHAR or LONGVARCHAR instead of CHAR, and when using setBoolean() instead of setObject(). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.