Re: Unable to prepare a statement when the object names contain more than one $ symbol

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Unable to prepare a statement when the object names contain more than one $ symbol
Дата
Msg-id 87ejjgze7v.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Unable to prepare a statement when the object names contain more than one $ symbol  (Altaf Malik <mmalik_altaf@yahoo.com>)
Список pgsql-jdbc
"Altaf Malik" <mmalik_altaf@yahoo.com> writes:

> I think $$ should start a quote instead of $x$. Or $ character have special
> meaning but if there is one dollar does not happen anything wrong. Are $$ and
> $x$ equal? If yes, what happens with the character(s) between the two dollar
> signs?

$anything$ starts a quote and ends with $anything$ as in:

postgres=# select $foo$bar$foo$;
 ?column?
----------
 bar
(1 row)


However the $ must start a new token:

postgres=# select foo$foo$bar$foo$;
ERROR:  column "foo$foo$bar$foo$" does not exist
LINE 1: select foo$foo$bar$foo$;


--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: Altaf Malik
Дата:
Сообщение: Re: Unable to prepare a statement when the object names contain more than one $ symbol
Следующее
От: Michael Paesold
Дата:
Сообщение: Re: Unable to prepare a statement when the object names contain more than one $ symbol