Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 1561 invoked from network); 8 Nov 2010 18:57:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Nov 2010 18:57:58 -0000 Received: (qmail 94406 invoked by uid 500); 8 Nov 2010 18:58:29 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 94379 invoked by uid 500); 8 Nov 2010 18:58:29 -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 94372 invoked by uid 99); 8 Nov 2010 18:58:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Nov 2010 18:58:29 +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; Mon, 08 Nov 2010 18:58:29 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA8Iw8wv024212 for ; Mon, 8 Nov 2010 18:58:09 GMT Message-ID: <12348069.79611289242688748.JavaMail.jira@thor> Date: Mon, 8 Nov 2010 13:58:08 -0500 (EST) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Assigned: (DERBY-4889) Different byte to boolean conversion on embedded and client In-Reply-To: <14600527.48671289005736863.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-4889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Hillegas reassigned DERBY-4889: ------------------------------------ Assignee: Rick Hillegas > Different byte to boolean conversion on embedded and client > ----------------------------------------------------------- > > Key: DERBY-4889 > URL: https://issues.apache.org/jira/browse/DERBY-4889 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.7.1.0 > Reporter: Knut Anders Hatlen > Assignee: Rick Hillegas > Attachments: derby-4889-01-aa-removeSpecialCase.diff > > > The following code prints "true" with the embedded driver and "false" with the client driver: > PreparedStatement ps = c.prepareStatement("values cast(? as boolean)"); > ps.setByte(1, (byte) 32); > ResultSet rs = ps.executeQuery(); > rs.next(); > System.out.println(rs.getBoolean(1)); > If setByte() is replaced with setInt(), they both print "true". -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.