Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 81578 invoked from network); 25 Feb 2011 11:49:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2011 11:49:05 -0000 Received: (qmail 74529 invoked by uid 500); 25 Feb 2011 11:49:04 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 74314 invoked by uid 500); 25 Feb 2011 11:49:01 -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 74293 invoked by uid 99); 25 Feb 2011 11:48:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 11:48:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 11:48:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DB1B01B7B4F for ; Fri, 25 Feb 2011 11:48:38 +0000 (UTC) Date: Fri, 25 Feb 2011 11:48:38 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <233684985.15840.1298634518894.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <14877845.279551294741785543.JavaMail.jira@thor> Subject: [jira] Updated: (DERBY-4965) Boolean to char conversion results in integer 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: -------------------------------------- Attachment: releaseNote.html Attaching a release note for this issue. > 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 > Assignee: Knut Anders Hatlen > Fix For: 10.8.0.0 > > Attachments: derby-4965-1a.diff, derby-4965-1b.diff, derby-4965-1c.diff, releaseNote.html, update-comments.diff > > Original Estimate: 0h > Remaining Estimate: 0h > > 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. - For more information on JIRA, see: http://www.atlassian.com/software/jira