UPDATE statement with syntax error doesn't raise a warning?

Поиск
Список
Период
Сортировка
От Mirko Pace
Тема UPDATE statement with syntax error doesn't raise a warning?
Дата
Msg-id 8eae94e10909250805l77464663xef2fad75b1ae7938@mail.gmail.com
обсуждение исходный текст
Ответы Re: UPDATE statement with syntax error doesn't raise a warning?  (Andy Colson <andy@squeakycode.net>)
Re: UPDATE statement with syntax error doesn't raise a warning?  (David W Noon <dwnoon@ntlworld.com>)
Список pgsql-general
I've ran an update statement like this (obviously wrong, I know!):

update my_table
  set boolean_field = true AND
  my_notes = 'something'
where id in
   (select id from my_table order by random() limit 4000);

in my psql client and I had a "UPDATE 4000" result but, correctly, anything was changed in my_table.

So... why pg didn't raise a warning about syntax issue?

Thank you!

Mirko

P.S.
PostgreSQL 8.3.8 on i686-pc-linux-gnu, compiled by GCC gcc (Debian 4.3.2-1.1) 4.3.2
psql 8.3.8 (Ubuntu package)

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

Предыдущее
От: Justin Pasher
Дата:
Сообщение: Re: Can't find SRPMs for PG 8.1.18 on RHEL4
Следующее
От: Andy Colson
Дата:
Сообщение: Re: Delphi connection ?