Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-interfacespgsql-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

pgsql-bugs by date

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

pgsql-interfaces by date

Next:From: Tony SimopoulosDate: 2001-01-10 17:43:03
Subject: ODBC parameter binding
Previous:From: Levi SellanDate: 2001-01-10 16:01:28
Subject: ODBC transactions with references

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group