Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0OEJ8q09859; Wed, 24 Jan 2001 09:19:08 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id JAA15011; Wed, 24 Jan 2001 09:19:02 -0500 (EST) From: Bruce Momjian Message-Id: <200101241419.JAA15011@candle.pha.pa.us> Subject: Re: [INTERFACES] jdbc driver: Support for 'BOOL' In-Reply-To: <3A635540.E420BD96@selectacast.net> "from Joseph Shraibman at Jan 15, 2001 02:53:36 pm" To: Joseph Shraibman Date: Wed, 24 Jan 2001 09:19:02 -0500 (EST) CC: =?ISO-8859-1?Q?Jos=E9_Antonio_Matute_Calvo?= , pgsql-bugs@postgresql.org, pgsql-interfaces@postgresql.org, PostgreSQL jdbc list X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200101/126 X-Sequence-Number: 505 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@selectacast.net > Increase signal to noise ratio. http://www.targabot.com > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026