Re: CachedRowSet insertion problem with serial PK

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: CachedRowSet insertion problem with serial PK
Дата
Msg-id 44805D7E.4010706@opencloud.com
обсуждение исходный текст
Ответ на CachedRowSet insertion problem with serial PK  ("rcolmegna@tiscali.it" <rcolmegna@tiscali.it>)
Список pgsql-jdbc
rcolmegna@tiscali.it wrote:

>     CachedRowSet rs;
>     ...
>     rs.setCommand("select id,info from a WHERE id<?");
>     rs.setInt(1, 10);
>     ...
>     rs.moveToInsertRow();
>     rs.setString(2, "zzzz2");
>     rs.insertRow();
>
> but I obtain this error:
> "SQLException: Failed on insert row" (generated from the insertRow()
> line).

Can you work out what the real exception thrown by the driver is? It is
hard to diagnose this without knowing what is happening at the low-level
JDBC API level.

-O

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

Предыдущее
От: "rcolmegna@tiscali.it"
Дата:
Сообщение: CachedRowSet insertion problem with serial PK
Следующее
От: Marc Herbert
Дата:
Сообщение: Re: UTF8