Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0D661B5DC33 for ; Fri, 16 Sep 2011 10:22:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 96997-03 for ; Fri, 16 Sep 2011 13:22:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from auth-smtp.nebula.fi (auth-smtp.nebula.fi [217.30.180.105]) by mail.postgresql.org (Postfix) with ESMTP id 66118B5DBDA for ; Fri, 16 Sep 2011 10:22:26 -0300 (ADT) Received: from quadvadis.localdomain (gw.nitor.fi [83.145.228.24]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.4/8.13.4) with ESMTP id p8GDDdLq007693 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 16 Sep 2011 16:13:40 +0300 Message-ID: <4E734B84.7050108@nitorcreations.com> Date: Fri, 16 Sep 2011 16:13:40 +0300 From: Mikko Tiihonen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Binary transfer support [1/7] - bugfixes Content-Type: multipart/mixed; boundary="------------050907040902060303070900" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/39 X-Sequence-Number: 22157 This is a multi-part message in MIME format. --------------050907040902060303070900 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------050907040902060303070900 Content-Type: text/plain; name="bugfixes.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bugfixes.patch" Index: pgjdbc.tmp8/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java =================================================================== --- pgjdbc.tmp8.orig/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java +++ pgjdbc.tmp8/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java @@ -2510,7 +2510,7 @@ public abstract class AbstractJdbc2Datab tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length - tuple[16] = rs.getBytes("attnum"); // ordinal position + tuple[16] = connection.encodeString(String.valueOf(rs.getInt("attnum"))); // ordinal position tuple[17] = connection.encodeString(rs.getBoolean("attnotnull") ? "NO" : "YES"); // Is nullable if (jdbcVersion >= 3) { --------------050907040902060303070900--