Re: \0 and IllegalArgumentException

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Sebastiaan van Erk <sebster(at)sebster(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: \0 and IllegalArgumentException
Date: 2004-10-29 10:58:39
Message-ID: 4182225F.9010804@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Sebastiaan van Erk wrote:

> I'm using postgres 7.4 with the latest JDBC driver, [...]

> java.lang.IllegalArgumentException: \0 not allowed

Please check your driver version. The latest development driver throws
SQLException in this case:

>> throw new PSQLException(GT.tr("Zero bytes may not occur in string parameters."), PSQLState.INVALID_PARAMETER_VALUE);

-O

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Sebastiaan van Erk 2004-10-29 11:46:46 Re: \0 and IllegalArgumentException
Previous Message Giampaolo Tomassoni 2004-10-29 10:00:08 Re: Serializable transactions and SQLException