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

From: Mirko Pace <mirkop82(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: UPDATE statement with syntax error doesn't raise a warning?
Date: 2009-09-25 15:05:13
Message-ID: 8eae94e10909250805l77464663xef2fad75b1ae7938@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jerzy Bialas 2009-09-25 15:22:30
Previous Message Justin Pasher 2009-09-25 14:40:08 Re: Can't find SRPMs for PG 8.1.18 on RHEL4