Re: Bug in UPDATE statement

Jaime Casanova <jcasanov@systemguards.com.ec>

From: Jaime Casanova <jcasanov@systemguards.com.ec>
To: Moisés Limón <neomega@yahoo.com>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2022-09-10T12:21:06Z
Lists: pgsql-bugs
On Sat, Sep 10, 2022 at 01:44:40AM -0500, Moisés Limón wrote:
> Hello,
> 
> PostgreSQL 14.4 compiled by Visual C++ build 1914, 64 bit
> 
> A bug was found in the UPDATE statement when the WHERE condition hasn't valid fields and only one valid field, the changes are applied for all rows.
> Error detected using a Function with an UPDATE statement.
> 
> Moisés Limón Ruiz

Hi Moisés,

Can you give a complete example of what you are describing (at least a
create table command, insert some rows and an UPDATE with the behaviour
you describe).

-- 
Jaime Casanova
Director de Servicios Profesionales
SystemGuards - Consultores de PostgreSQL