Lists: | Postg토토SQL : Postg토토SQL 메일 링리스트 : 2022-09-10 이후 PGSQL 버그 14:43 |
---|
From: | Moisés Limón <neomega(at)yahoo(dot)com> |
---|---|
To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Bug in UPDATE statement |
Date: | 2022-09-10 06:44:40 |
Message-ID: | 038F1E06-4866-4563-8DE0-229B8B19ABD2@yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
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
From: | Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec> |
---|---|
To: | Moisés Limón <neomega(at)yahoo(dot)com> |
Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: Bug in UPDATE statement |
Date: | 2022-09-10 12:21:06 |
Message-ID: | PostgreSQL : Re : 토토 커뮤니티 |
Views: | Raw Message | PostgreSQL : | Download mbox | Resend email |
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
From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Moisés Limón <neomega(at)yahoo(dot)com> |
Cc: | "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Bug in UPDATE statement |
Date: | 2022-09-10 14:43:45 |
Message-ID: | CAKFQuwbMU8inji2kfRYUdfR-0113LeBPxmGPewiLTm+3pyuD7g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg토토SQL : Postg토토SQL 메일 링리스트 : 2022-09-10 이후 PGSQL 버그 14:43 |
On Friday, September 9, 2022, Moisés Limón <neomega(at)yahoo(dot)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.
https://wiki.postgresql.org/wiki/FAQ#Why_doesn.27t_
PostgreSQL_report_a_column_not_found_error_when_using_
the_wrong_name_in_a_subquery.3F
(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.