Re: Bug in psql - Postgresql 7.3.1?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug in psql - Postgresql 7.3.1?
Дата
Msg-id 729.1065212832@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug in psql - Postgresql 7.3.1?  ("John B. Scalia" <jscalia@cityblueprinting.com>)
Список pgsql-sql
"John B. Scalia" <jscalia@cityblueprinting.com> writes:
> UPDATE my_table SET field1='new_value' AND SET field2='different_value'
> WHERE my_table_id = 'key';

The other responses have focused on your obvious syntax error, but I'm
assuming you didn't actually cut-and-paste that from your psql session.

> in psql, it reports that it has successfully updated one record.
> However, the record does not appear to be updated when I subsequently
> issue a SELECT for that record.

I'm wondering if you are checking from another transaction that doesn't
think the first one is committed yet.  Are you using BEGIN/END or
autocommit-off mode?
        regards, tom lane


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Bug in psql - Postgresql 7.3.1?
Следующее
От: Wei Weng
Дата:
Сообщение: function with variable length of parameters