Re: BUG #4656: Indexes not used when comparing nextval() and currval() to integers

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: BUG #4656: Indexes not used when comparing nextval() and currval() to integers
Дата
Msg-id 49993D6D.3020504@enterprisedb.com
обсуждение исходный текст
Ответ на BUG #4656: Indexes not used when comparing nextval() and currval() to integers  ("Mathias Seiler" <mathias.seiler@gmail.com>)
Список pgsql-bugs
toruvinn wrote:
> On Mon, 16 Feb 2009 10:37:27 +0100, Heikki Linnakangas
> <heikki.linnakangas@enterprisedb.com> wrote:
>> You can read the value returned by currval into a host language
>> variable and send it back as a ?.
> Wouldn't it be possible to do UPDATE booking_entries SET date = ? where
> id = (SELECT currval('booking_entries_id_seq'::regclass)); too?

Oh yes, that should work as well.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: "Brundle Fly"
Дата:
Сообщение: BUG #4658: copy problem
Следующее
От: "Tomasz Kolaj"
Дата:
Сообщение: BUG #4659: Can't configure static postgresql with static openssl