jdbc driver: Support for 'BOOL' - Mailing list pgsql-interfaces

From José Antonio Matute Calvo
Subject jdbc driver: Support for 'BOOL'
Date
Msg-id 93i2nh$2do8$1@news.tht.net
Whole thread Raw
List pgsql-interfaces
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.




pgsql-interfaces by date:

Previous
From: D Johnson
Date:
Subject: MS Access memo datatypes
Next
From: "Mike Cannon-Brookes"
Date:
Subject: RE: JDBC date problem