pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
To: pgsql-jdbc@postgresql.org
Subject: Binary transfer support [1/7] - bugfixes
Date: Fri, 16 Sep 2011 16:13:40 +0300
Message-ID: <4E734B84.7050108@nitorcreations.com> (raw)



Attachments:

bugfixes.patch (text/plain, 865B) download 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) {

Message-ID: <4E734B84.7050108@nitorcreations.com>
Permalink:  ../4E734B84.7050108@nitorcreations.com/
Also on:    postgresql.org/message-id/4E734B84.7050108@nitorcreations.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mikko.tiihonen@nitorcreations.com
  Subject: Re: Binary transfer support [1/7] - bugfixes
  In-Reply-To: <4E734B84.7050108@nitorcreations.com>
  References: <4E734B84.7050108@nitorcreations.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox