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 f0P3W0q01675; Wed, 24 Jan 2001 22:32:00 -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 WAA29980; Wed, 24 Jan 2001 22:31:38 -0500 (EST) From: Bruce Momjian Message-Id: <200101250331.WAA29980@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 22:31:38 -0500 (EST) CC: =?ISO-8859-1?Q?Jos=E9_Antonio_Matute_Calvo?= , pgsql-bugs@postgresql.org, pgsql-interfaces@postgresql.org 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/136 X-Sequence-Number: 515 Seems the BIT type works in Java 7.1 beta now. [ 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