| От | Tom Lane |
|---|---|
| Тема | Re: dollar-quoting in psql and in general |
| Дата | |
| Msg-id | 23348.1092278835@sss.pgh.pa.us обсуждение |
| Ответ на | dollar-quoting in psql and in general (Philip Warner <pjw@rhyme.com.au>) |
| Ответы |
Re: dollar-quoting in psql and in general
|
| Список | pgsql-hackers |
Philip Warner <pjw@rhyme.com.au> writes:
> While trying to understand dollar-quoting, I found the following in psql:
> select $a$ hello $a$;
> behaves as expected, but psql does not like
> select $a$ \ $a$;
> or
> select $a$ \\ $a$;
Define "does not like". The behavior seems correct to me.
> Should it? How should a dollar-quote handle:
> $a$ \$a\$a $a$
The value of that is " \$a\$a ". Backslashes are not special inside
dollar quotes --- nor is anything else, except the matching close tag.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера