Re: non-standard escapes in string literals

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB SD
Тема Re: non-standard escapes in string literals
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA4961DC7@m0114.s-mxs.net
обсуждение исходный текст
Ответ на non-standard escapes in string literals  (pimlott@idiomtech.com (Andrew Pimlott))
Ответы Re: non-standard escapes in string literals  (pimlott@idiomtech.com (Andrew Pimlott))
Список pgsql-hackers
> > This also poses the biggest problem in terms of legacy compatibility.
> > Perhaps the answer is to add a runtime config option (and default it
> > to ANSI) and possibly deprecate the C escaping.
>
> While I wouldn't necessarily object to a runtime option, I do object
> to both the other parts of your proposal ;-).  Backslash escaping is
> not broken; we aren't going to remove it or deprecate it, and I would
> vote against making it non-default.

When we are talking about the places where you need double escaping
(once for parser, once for input function) to make it work, I would also
say that that is very cumbersome (not broken, since it is thus documented) :-)
I would also default to strict ANSI, but not depricate the escaping when set.
All imho of course.

Andreas


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

Предыдущее
От: mlw
Дата:
Сообщение: Re: Path to PostgreSQL portabiliy
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: postgresql 7.1 file descriptor