Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 47327 invoked from network); 21 Nov 2006 13:38:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2006 13:38:29 -0000 Received: (qmail 90848 invoked by uid 500); 21 Nov 2006 13:38:35 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 90820 invoked by uid 500); 21 Nov 2006 13:38:35 -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 90802 invoked by uid 99); 21 Nov 2006 13:38:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Nov 2006 05:38:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Nov 2006 05:38:23 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2989B7142FC for ; Tue, 21 Nov 2006 05:38:03 -0800 (PST) Message-ID: <23882631.1164116283101.JavaMail.jira@brutus> Date: Tue, 21 Nov 2006 05:38:03 -0800 (PST) From: "Fernanda Pizzorno (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-2104) Embedded - Column of type CHAR, VARCHAR or LONG VARCHAR contains wrong value after being updated using the ResultSet.updateBytes() method. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Embedded - Column of type CHAR, VARCHAR or LONG VARCHAR contains wrong valu= e after being updated using the ResultSet.updateBytes() method. ---------------------------------------------------------------------------= --------------------------------------------------------------- Key: DERBY-2104 URL: http://issues.apache.org/jira/browse/DERBY-2104 Project: Derby Issue Type: Bug Components: JDBC Reporter: Fernanda Pizzorno REPRO: Statement stmt1 =3D conn.createStatement(ResultSet.TYPE_FORWARD= _ONLY,=20 ResultSet.CONCUR_UPDATABLE); =20 stmt1.executeUpdate("CREATE TABLE t1 (i int, c char(60))"); stmt1.executeUpdate("INSERT INTO t1 values (1, 'xx')"); =20 ResultSet rs1 =3D stmt1.executeQuery("SELECT * FROM t1"); =20 if (!rs1.next()) { System.out.println("Row not found"); return; } =20 rs1.updateBytes(2, "NEW VALUE".getBytes()); rs1.updateRow(); rs1.close(); =20 rs1 =3D stmt1.executeQuery("SELECT * FROM t1"); if (!rs1.next()) { System.out.println("Row not found"); return; } =20 if (!rs1.getString(2).equals("NEW VALUE")) { System.out.println("FAIL - wrong string value for column 2.= " + "Expected: NEW VALUE but was: " + rs1.getString(2))= ; } OUTPUT: FAIL - wrong string value for column 2. Expected: NEW VALUE but was: =E4=B9= =85=E5=9C=A0=E5=99=81=E4=B1=95=E4=94=80 --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira