pgsql/src/interfaces/jdbc/org/postgresql jdbc1 ...

From: Bruce Momjian - CVS <momjian(at)hub(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/interfaces/jdbc/org/postgresql jdbc1 ...
Date: 2001-06-11 22:12:00
Message-ID: 200106112212.f5BMC0j32900@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /home/projects/pgsql/cvsroot
Module name: pgsql
Changes by: momjian(at)hub(dot)org 01/06/11 18:12:00

Modified files:
src/interfaces/jdbc/org/postgresql/jdbc1: PreparedStatement.java
ResultSet.java
src/interfaces/jdbc/org/postgresql/jdbc2: PreparedStatement.java
ResultSet.java

Log message:
Got two patches that were found by folks on the Castor list, that we'd like to
submit. These were done for the jdbc2 driver. The first one is for support
of the Types.BIT in the PreparedStatement class. The following lines need to be
inserted in the switch statment, at around line 530:

(Prepared statment, line 554, before the default: switch
case Types.BIT:
if (x instanceof Boolean) {
set(parameterIndex, ((Boolean)x).booleanValue() ? "TRUE" : "FALSE");
} else {
throw new PSQLException("postgresql.prep.type");
}
break;

The second one is dealing with blobs,

inserted in PreparedStatemant.java (After previous patch line, 558):
case Types.BINARY:
case Types.VARBINARY:
setObject(parameterIndex,x);
break;
and in ResultSet.java (Around line 857):
case Types.BINARY:
case Types.VARBINARY:
return getBytes(columnIndex);

Ned Wolpert <ned(dot)wolpert(at)knowledgenet(dot)com>

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian - CVS 2001-06-11 22:12:48 pgsql/ /configure.in rc/bin/psql/tab-complete. ...
Previous Message Peter Eisentraut - PostgreSQL 2001-06-11 18:23:33 pgsql/src/bin/psql de.po help.c nls.mk fr.po