From: Julien Rouhaud <rjuju123@gmail.com>
To: Jüri Tali <Jyri.Tali@agri.ee>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: Postgres 14 update clause bug
Date: Thu, 10 Feb 2022 16:28:27 +0800
Message-ID: <20220210082827.dalmm3paxdvpd7xf@jrouhaud> (raw)
In-Reply-To: <e7861ec3fb4d47b0a18f37fa6ce37731@agri.ee>
References: <e7861ec3fb4d47b0a18f37fa6ce37731@agri.ee>
On Thu, Feb 10, 2022 at 07:29:54AM +0000, Jüri Tali wrote:
>
> Postgres 14 probably have Update clause bug
>
> If I write Update clause little bit wrong:
>
> UPDATE "table name" SET column1=1 and column2=2
> WHERE id=1; there is a syntax error, in set part columns must be delimited with comma
>
> Then postgres 14 do not give a error message and show that Update is successful, but without no updated columns.
> POstgres 12 gives a error.
Can you show the definition of the table on both system? Also did you add some
extension or created some casts? I'm wondering if your problem is that you're
actually executing something like that:
UPDATE table_name SET column1 = (1::bool AND column2 = 2) WHERE id = 1;
due to implicit int - bool cast, which aren't present in you pg12 instance (and
shouldn't be present in vanilla postgres).
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: rjuju123@gmail.com, Jyri.Tali@agri.ee
Subject: Re: Postgres 14 update clause bug
In-Reply-To: <20220210082827.dalmm3paxdvpd7xf@jrouhaud>
References: <e7861ec3fb4d47b0a18f37fa6ce37731@agri.ee> <20220210082827.dalmm3paxdvpd7xf@jrouhaud>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox