Search Postgresql Archives

Re: Postgres 8.4 literal escaping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Niederland <niederland@xxxxxxxxx> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux