Re: Problem with executeBatch and "A result was returned when none was expected"

Поиск
Список
Период
Сортировка
От Vitalii Tymchyshyn
Тема Re: Problem with executeBatch and "A result was returned when none was expected"
Дата
Msg-id 4D80946E.3060200@gmail.com
обсуждение исходный текст
Ответ на Re: Problem with executeBatch and "A result was returned when none was expected"  (Dave Cramer <pg@fastcrypt.com>)
Ответы Re: Problem with executeBatch and "A result was returned when none was expected"  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
16.03.11 12:40, Dave Cramer написав(ла):
So looking at the code if you add RETURN_GENERATED_KEYS to the
statement it returns all of the columns. That's rather ugly. Is there
a way to determine just the generated keys ?
AFAIR it was a long discussion on what is "generated". E.g. is calculated default value (CURRENT TIMESTAMP) generated? Constant default value? So, the driver now either returns all or you can pass columns you require by yourself with "boolean execute(String sql,  String[] columnNames)".

Best regards, Vitalii Tymchyshyn

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Problem with executeBatch and "A result was returned when none was expected"
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Problem with executeBatch and "A result was returned when none was expected"