Re:

Поиск
Список
Период
Сортировка
От vasylenko@uksatse.org.ua
Тема Re:
Дата
Msg-id OF41BC4C79.AFC9FDE2-ONC2257260.0021E3EA-C2257260.0024D58E@UKCC.UKSATSE
обсуждение исходный текст
Ответ на  (vasylenko@uksatse.org.ua)
Ответы Re:  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc


Dave and Andre, thank for your responses!

The JDBC driver needs the Primary Key in Select query to identify the row.
I was mistaken thinking of  doing without it,

ResultSet makes updates in Row  executing the

java.sql.Connection.prepareStatement("UPDATE holidays SET  "g_name" = ?
WHERE "id" = ?")
and  executeUpdate()

when user makes call ResultSet.updateRow() and "id" - the Primary Key in
database's table.  It's logicaly for me now....

The same is going on whe users call ResultSet.insertRow().
The only question presents, why the JDBCDriver developers want to find
PrimaryKey or oid field inside method "moveToInsertRow()"?
I think it mustn't be JDBCDriver problem.
It is the Postrgre server trouble or developers who use JDBCDriver.


I'm going to do in way Andre has recommended and use id field in SELECT
query as Dave has advised.

Thank!


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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: JSQL and postgre 8.1
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: