Re: JDBC Prepared Statement Bug

From: Doug McNaught <doug(at)wireboard(dot)com>
To: Dave <dave(at)candata(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: JDBC Prepared Statement Bug
Date: 2002-03-14 15:49:13
Message-ID: m3n0xbqhdy.fsf@varsoon.denali.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dave <dave(at)candata(dot)com> writes:

> I am trying to use a Prepared Statement that has a character type. The
> value I am trying to use is '\0' and it is getting set with the
> setObject method.

'\0' is not a legal value for character types. You'll need to use the
BYTEA type instead and quote it properly.

-Doug
--
Doug McNaught Wireboard Industries http://www.wireboard.com/

Custom software development, systems and network consulting.
Java PostgreSQL Enhydra Python Zope Perl Apache Linux BSD...

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2002-03-14 15:49:35 Re: Question about function
Previous Message Stephan Szabo 2002-03-14 15:47:46 Re: User permissions