Re: WARNING: nonstandard use of escape in a string literal

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: WARNING: nonstandard use of escape in a string literal
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C2039380EF@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: WARNING: nonstandard use of escape in a string literal  ("Patrick M. Rutkowski" <rutski89@gmail.com>)
Список pgsql-general
Patrick M. Rutkowski wrote:
> Is the query
> UPDATE my_table SET colname = NULL WHERE colname ~ '^\s*$'
>
> already all correct and standard conforming. Such that all I need to
> do is turn on standard_conforming_strings to have it stop complaining
> at me?

Precisely.

> In other words: I'm already doing it right, no?

If you define "right" as "standard compliant", yes.
If you define "right" as "in accordance with the default
behaviour of PostgreSQL", then no.

Yours,
Laurenz Albe

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

Предыдущее
От: S Arvind
Дата:
Сообщение: Session based transaction!!
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: WARNING: nonstandard use of escape in a string literal