jdbc driver: Support for 'BOOL'

From: "Jos Antonio Matute Calvo" <cmaj(at)encomix(dot)es>
To: pgsql-bugs(at)postgresql(dot)org(dot)pgsql-interfaces(at)postgresql(dot)org
Subject: jdbc driver: Support for 'BOOL'
Date: 2001-01-10 16:31:30
Message-ID: 93i2nh$2do8$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-interfaces pgsql-jdbc

Problem:
If try to use field of type "java.sql.Types.BIT" obtains error "Unknown
Types Value"

Resolution:

Add this:

PreparedStatement.java
460,461d459
< case Types.BIT:
< set(parameterIndex,
((Boolean)x).booleanValue() ? "true" : "false");

Jose A. Matute Calvo
Daratel, S.L.
Zaragoza - Spain.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Mount 2001-01-10 22:22:04 Re: JDBC Driver Authentication Bug
Previous Message pgsql-bugs 2001-01-10 16:04:30 JDBC Connection must be restarted after executing SQL statement that calls a PL/PGSQL function that won't compile

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tony Simopoulos 2001-01-10 17:43:03 ODBC parameter binding
Previous Message Levi Sellan 2001-01-10 16:01:28 ODBC transactions with references

Browse pgsql-jdbc by date

  From Date Subject
Next Message Ian deSouza 2001-01-11 01:11:20 BIT type still not working
Previous Message pgsql-bugs 2000-11-14 06:58:56 no way in LargeObject API to detect short read?