Re: Postgres 8.4 literal escaping

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Niederland <niederland(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres 8.4 literal escaping
Date: 2009-07-09 21:18:10
Message-ID: 7094.1247174290@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Niederland <niederland(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message nabble.30.miller_2555 2009-07-09 23:40:59 Database storage
Previous Message John R Pierce 2009-07-09 21:07:48 Re: Help me please...