Re: psql feature thought

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: psql feature thought
Дата
Msg-id 260CDD84-9E3B-4A2A-A249-B76680D5EB5C@seespotcode.net
обсуждение исходный текст
Ответ на Re: psql feature thought  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: psql feature thought  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Thomas Hallgren
Дата:
Сообщение: Re: psql feature thought
Следующее
От: "Zeugswetter Andreas DCP SD"
Дата:
Сообщение: Re: Compression and on-disk sorting