Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 46904 invoked from network); 4 May 2006 19:54:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2006 19:54:20 -0000 Received: (qmail 4326 invoked by uid 500); 4 May 2006 19:54:18 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 4269 invoked by uid 500); 4 May 2006 19:54:18 -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 4243 invoked by uid 99); 4 May 2006 19:54:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 12:54:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.1.36] (HELO gmpea-pix-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 12:54:17 -0700 Received: from d1-emea-04.sun.com (d1-emea-04.sun.com [192.18.2.114] (may be forged)) by gmpea-pix-1.sun.com (8.12.9/8.12.9) with ESMTP id k44JrpXl024390 for ; Thu, 4 May 2006 20:53:51 +0100 (BST) Received: from conversion-daemon.d1-emea-04.sun.com by d1-emea-04.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0IYR00G0149SAH00@d1-emea-04.sun.com> (original mail from Bernt.Johnsen@Sun.COM) for derby-dev@db.apache.org; Thu, 04 May 2006 20:53:51 +0100 (BST) Received: from localhost ([129.159.115.216]) by d1-emea-04.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0IYR00JXRB9OTX50@d1-emea-04.sun.com> for derby-dev@db.apache.org; Thu, 04 May 2006 20:53:50 +0100 (BST) Date: Thu, 04 May 2006 21:53:29 +0200 From: "Bernt M. Johnsen" Subject: Re: [jira] Commented: (DERBY-7) Bug in NULLIF Function In-reply-to: <17536823.1146764847834.JavaMail.jira@brutus> Sender: Bernt.Johnsen@Sun.COM To: "Myrna van Lunteren (JIRA)" Message-id: <20060504195329.GA19866@localhost.localdomain> Organization: Sun Microsystems MIME-version: 1.0 Content-type: multipart/signed; boundary="PEIAKu/WMn1b1Hv9"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline References: <979740866.1096332272139.JavaMail.apache@nagoya> <17536823.1146764847834.JavaMail.jira@brutus> User-Agent: Mutt/1.5.9i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >>>>>>>>>>>> Myrna van Lunteren (JIRA) wrote (2006-05-04 17:47:27): > [ http://issues.apache.org/jira/browse/DERBY-7?page=3Dcomments#action= _12377852 ]=20 >=20 > Myrna van Lunteren commented on DERBY-7: > ---------------------------------------- >=20 > Hi Berndt, >=20 > I happened to spot the following in your check-in for revision 399657 for= the test jdbcapi/resultset.java: >=20 > + } catch(SQLException ex){ > + if (ex.getSQLState().equals("2200= 5")) { > + if (s.getBytes (i) !=3D n= ull) > + row.append(new String(s.getBytes(i))); > + else > + row.append(s.getBytes(i)); > + } else throw ex;=20 > + } >=20 > I think what has happened here is that you applied original patch of > DERBY-7 to 10.1. No, I did a svn merge -r227280:227281 ../trunk > However, the test resultset.java has since had some work done on it, > and I'm specifically concerned that you may have missed the changes > I worked on for DERBY-903, which were committed with revision 378337 > and 379643. I think the explanation is that DERBY-7 was committed long before DERBY-903, but now they were applied to 10.1 in the opposite order. > This eliminates the use of the constructor 'new String(bytes[]), > which is non-portable...It constructs a string by decoding the bytes > using the default platform charset. This can lead to encoding > related problems. For this case, you should probably use the > constructor that takes in the encoding. ie new String(byte[], String > charsetname). >=20 > Can you please rework this section of resultset.java to not use an > encoding-safe mechanism? Just compare with the current 10.2 > resultset.java... Thanks for spotting this one, I'll look into it. --=20 Bernt Marius Johnsen, Database Technology Group,=20 Staff Engineer, Technical Lead Derby/Java DB Sun Microsystems, Trondheim, Norway --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEWlu5lFBD9TXBAPARAiU/AJ40+hQa5u9Q7FofnvKwKX7VJrihxgCdErTo CDmGaSTr5fw05/zyq2s0Md8= =byAo -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--