Re: psql feature thought - Mailing list pgsql-hackers

From Michael Glaesemann
Subject Re: psql feature thought
Date
Msg-id 260CDD84-9E3B-4A2A-A249-B76680D5EB5C@seespotcode.net
Whole thread Raw
In response to Re: psql feature thought  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: psql feature thought  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On May 16, 2006, at 14:17 , Tom Lane wrote:

> [1] Mostly.  There's the infamous continued-string-literal  
> construct...

Are you referring to this?

est=# SELECT 'foo'    'bar'; -- invalid
ERROR:  syntax error at or near "'bar'" at character 17
LINE 1: SELECT 'foo'    'bar';                        ^
test=# SELECT 'foo'
test-# 'bar'; -- valid
?column?
----------
foobar
(1 row)

I've been exploiting that (mis)feature for line-wrapping comments  
after seeing it used that way somewhere. Very useful in that case,  
but very strange, I'll give you that.

Michael Glaesemann
grzm seespotcode net





pgsql-hackers by date:

Previous
From: Thomas Hallgren
Date:
Subject: Re: psql feature thought
Next
From: "Zeugswetter Andreas DCP SD"
Date:
Subject: Re: Compression and on-disk sorting