Re: Odd Update Behaviour

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Odd Update Behaviour
Дата
Msg-id CAKFQuwZdkSWaSLBY_19ESL7BctrWtVEyXfqSyprsGT0y+3YS3Q@mail.gmail.com
обсуждение исходный текст
Ответ на Odd Update Behaviour  (Harry Ambrose <harry.ambrose@gmail.com>)
Список pgsql-general
On Thu, Jun 20, 2019 at 2:13 PM Harry Ambrose <harry.ambrose@gmail.com> wrote:
Hi,

I noticed some weird update behaviour today in one of our development environments. In my opinion this appears to be a bug, but before reporting it I thought I should seek the opinions of others in the community. Maybe this is known and/or seen before?



The behaviour is visible when a subquery is used in an update. More specifically when a subquery is rejected by the parser when executed on it's own. This causes the where condition to be ignored entirely and thus the whole table updated rather than the parser throwing an error.

David J.

В списке pgsql-general по дате отправления:

Предыдущее
От: Harry Ambrose
Дата:
Сообщение: Odd Update Behaviour
Следующее
От: David Gauthier
Дата:
Сообщение: Need create table statements from metadata