Re: Suspected JDBC bug

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Suspected JDBC bug
Дата
Msg-id alpine.BSO.2.03.1406272035350.15771@ejurka.com
обсуждение исходный текст
Ответ на Suspected JDBC bug  (Jim Gray <Jim.Gray@Bull.com>)
Список pgsql-jdbc

On Fri, 27 Jun 2014, Jim Gray wrote:

>
> I have a test case (attached) which has this output:
>
>   Message:  The column name pnum was not found in this ResultSet.
>
>

The PG JDBC driver requires you to select all primary key columns to be
able to update a ResultSet.  The checking for this was not correct for
multicolumn primary keys and gave you the previous error message.  With
the attached patch it will say:

Updating first result set value: E2 , with new value: E9
SQL Exception processing result set for: SELECT ?
  SQLState: 24000
  SQLCode:  0
  Message:  ResultSet is not updateable.  The query that generated this
result set must select only one table, and must select all primary keys
from that table. See the JDBC 2.1 API Specification, section 5.6 for more
details.


Kris Jurka

Вложения

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

Предыдущее
От: Jim Gray
Дата:
Сообщение: Suspected JDBC bug
Следующее
От: keshava
Дата:
Сообщение: Postgres 9.3 JDBC issue with reading bytes