quotes in SET grammar

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема quotes in SET grammar
Дата
Msg-id 3C7BA074.535FA222@fourpalms.org
обсуждение исходный текст
Ответы Re: quotes in SET grammar  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: quotes in SET grammar  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: quotes in SET grammar  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Christopher's patch to fix docs regarding single- and double-quotes in
SET syntax got me looking at gram.y. It turns out that although we allow
lists of double-quoted strings in SET, we do not allow lists of
single-quoted strings (the latter should have been preferred afaik). And
although we allow single-quoted strings in SET TIME ZONE, we do not
allow double-quoted strings! So things seem inconsistant to me.

Possible cases look like
 SET TIME ZONE 'pst8pdt'; SET TIME ZONE "pst8pdt"; SET DATESTYLE = "US","ISO";

Is there any objection to allowing both single- and double-quoted
strings in SET? Or should I remove the double-quoted variety altogether?
I've got patches for the former, but am willing to consider either
solution. afaik single-quoted strings would be sufficient to cover
users' expectations, and all cases are extentions to SQL9x syntax, which
only specifies SET TIME ZONE with a numeric offset. Comments?
                   - Thomas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Janardhana Reddy
Дата:
Сообщение: Re: [PATCHES] WAL Performance Improvements
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Refactoring of command.c