| From: | Joseph Shraibman <jks(at)selectacast(dot)net> |
|---|---|
| To: | José Antonio Matute Calvo <cmaj(at)encomix(dot)es> |
| Cc: | pgsql-bugs(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org |
| Subject: | Re: [INTERFACES] jdbc driver: Support for 'BOOL' |
| Date: | 2001-01-15 19:53:36 |
| Message-ID: | 3A635540.E420BD96@selectacast.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-interfaces pgsql-jdbc |
"José Antonio Matute Calvo" wrote:
>
> 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");
Why not set(parameterIndex,x.toString())?
--
Joseph Shraibman
jks(at)selectacast(dot)net
Increase signal to noise ratio. http://www.targabot.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stu Coates | 2001-01-15 22:20:11 | JDBC buggy in 7.1beta3 |
| Previous Message | Tom Lane | 2001-01-15 15:22:39 | Re: Silent insert lack |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Knopp, Gary | 2001-01-15 20:09:04 | 7.1 Beta3 bug when using ODBC |
| Previous Message | Tom Samplonius | 2001-01-15 16:37:23 | Re: improve performance |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joseph Shraibman | 2001-01-15 20:14:26 | Re: Patch for JDBC timestamp problems |
| Previous Message | Bruce Momjian | 2001-01-14 03:08:08 | Re: [PATCHES] Revised Patch for JDBC timestamp problems |