On Friday, September 9, 2022, Moisés Limón <
neomega@yahoo.com> 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.
This is only a bug in the code you wrote, not a bug in PostgreSQL. The code doesn’t error because it is valid.
(Yes, I’m assuming the problem here because you’ve filed a crappy bug report about a query bug without providing a query).
David J.