get generated keys and insert returning

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема get generated keys and insert returning
Дата
Msg-id 422C51D8.4090401@fastcrypt.com
обсуждение исходный текст
Список pgsql-hackers
There's a requirement for the odbc, and jdbc drivers to be able to 
return generated keys. AFAIR implementing insert returning would solve 
this problem.

I think it still leaves us with a number of problems

1) the code has to know in advance to issue the insert returning.
2) also has to know in advance which columns are autogenerated.

in the case of jdbc the getGeneratedKeys method returns the values of 
any autogenerated columns without knowing in advance
which columns are generated.

This seems to imply that this has to be done by the server without any 
client library knowing before hand the primary keys.

Dave

-- 
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561



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

Предыдущее
От: "Mark Cave-Ayland"
Дата:
Сообщение: Re: Cost of XLogInsert CRC calculations
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Cost of XLogInsert CRC calculations