From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Joseph Shraibman <jks(at)selectacast(dot)net> |
Cc: | José Antonio Matute Calvo <cmaj(at)encomix(dot)es>, pgsql-bugs(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org, PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: [INTERFACES] jdbc driver: Support for 'BOOL' |
Date: | 2001-01-24 14:19:02 |
Message-ID: | 200101241419.JAA15011@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-interfaces pgsql-jdbc |
Is this a bug? Can someone submit a patch?
[ Charset ISO-8859-1 unsupported, converting... ]
> "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
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-01-24 14:19:43 | Re: JDBC buggy in 7.1beta3 |
Previous Message | Vince Vielhaber | 2001-01-24 12:19:33 | Re: [DOCS] Re: 7.1 released on 2000-09-01? |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-01-24 14:56:36 | Re: [INTERFACES] BIT type still not working |
Previous Message | Bruce Momjian | 2001-01-24 14:18:01 | Re: [PATCHES] Re: Patch for JDBC timestamp problems |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-01-24 14:19:43 | Re: JDBC buggy in 7.1beta3 |
Previous Message | Bruce Momjian | 2001-01-24 14:18:01 | Re: [PATCHES] Re: Patch for JDBC timestamp problems |