Re: WARNING: nonstandard use of escape in a string literal - Mailing list pgsql-general

From Albe Laurenz
Subject Re: WARNING: nonstandard use of escape in a string literal
Date
Msg-id D960CB61B694CF459DCFB4B0128514C2039380EF@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Re: WARNING: nonstandard use of escape in a string literal  ("Patrick M. Rutkowski" <rutski89@gmail.com>)
List 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 by date:

Previous
From: S Arvind
Date:
Subject: Session based transaction!!
Next
From: Alban Hertroys
Date:
Subject: Re: WARNING: nonstandard use of escape in a string literal