Re: #escape_string_warning = off
От | Oliver Jowett |
---|---|
Тема | Re: #escape_string_warning = off |
Дата | |
Msg-id | 42F0C948.7090108@opencloud.com обсуждение исходный текст |
Ответ на | Re: #escape_string_warning = off (Peter Eisentraut <peter_e@gmx.net>) |
Ответы |
Re: #escape_string_warning = off
Re: #escape_string_warning = off |
Список | pgsql-hackers |
Peter Eisentraut wrote: >>Also, let's say I have apps now in 7.4/8.0, and I want them to be >>forward-compatible. Should I make a type called E so that the E'' >>notation will work, and then use that for strings? What is the "right" >>way to do it? > > To be standards-conforming, don't use any backslash escapes. If you must use > them, use the E'' notation. That doesn't really answer the question, though, since none of 7.4/8.0/8.1 interprets '' strings in a strictly standards-conforming way as I understand it. The impression I got from previous discussion was that you need to check the value of the standard_compliant_strings GUC, and double backslashes inside '' only if it was false or missing. -O
В списке pgsql-hackers по дате отправления: