Re: IllegalArgumentException in batch execution

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: IllegalArgumentException in batch execution
Дата
Msg-id alpine.BSO.2.00.1006090209210.2333@leary.csoft.net
обсуждение исходный текст
Ответ на IllegalArgumentException in batch execution  (Altaf Malik <mmalik_altaf@yahoo.com>)
Список pgsql-jdbc

On Tue, 8 Jun 2010, Altaf Malik wrote:

> All,
>  I have noticed a strange behavior in jdbc. Consider the following code:
>
>         PreparedStatement stmt = con.prepareStatement("insert into testtbl
> values(?,?)");
>
>             stmt.setInt(1, 110);
>             stmt.setString(2, "Hello\0 Mr.X");
>             stmt.addBatch();
>             stmt.executeBatch();
>
> When I execute this code, I get Two errors:
>
> (1):
> java.lang.IllegalArgumentException: org.postgresql.util.PSQLException: Zero
> bytes may not occur in string parameters.

This has been fixed in CVS.

Kris Jurka

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: I can't get the database's list
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: I can't get the database's list