Re: Postgres 8.4 literal escaping - Mailing list pgsql-general

From Tom Lane
Subject Re: Postgres 8.4 literal escaping
Date
Msg-id 7094.1247174290@sss.pgh.pa.us
Whole thread Raw
In response to Postgres 8.4 literal escaping  (Niederland <niederland@gmail.com>)
Responses Re: Postgres 8.4 literal escaping
List pgsql-general
Niederland <niederland@gmail.com> writes:
> SQL 2: select ('A' || '\r\n' || 'B') as tt from customer limit 1
> Functions without escaping literal

Really?  I get

regression=# select ('A' || '\r\n' || 'B') as tt from customer limit 1;
WARNING:  nonstandard use of escape in a string literal
LINE 1: select ('A' || '\r\n' || 'B') as tt from customer limit 1;
                       ^
HINT:  Use the escape string syntax for escapes, e.g., E'\r\n'.
 tt
----
(0 rows)

            regards, tom lane

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Help me please...
Next
From: nabble.30.miller_2555@spamgourmet.com
Date:
Subject: Database storage