Re: Query with boolean parameter

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Query with boolean parameter
Дата
Msg-id 74FC637F-2D25-4CD0-A075-9CB5293FCA5B@thebuild.com
обсуждение исходный текст
Ответ на Query with boolean parameter  (Paolo De Stefani <paolo@paolodestefani.it>)
Ответы Re: Query with boolean parameter  (Paolo De Stefani <paolo@paolodestefani.it>)
Список psycopg

> On Mar 18, 2022, at 16:56, Paolo De Stefani <paolo@paolodestefani.it> wrote:
> Is there any reason why the second query results in a syntax error?

There's not IS operator in PostgreSQL (or in SQL).  IS NULL, IS NOT NULL, IS TRUE, and IS FALSE are in effect unary
postfixoperators, so you can't construct them that way via parameter substitution. 


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

Предыдущее
От: Paolo De Stefani
Дата:
Сообщение: Query with boolean parameter
Следующее
От: Paolo De Stefani
Дата:
Сообщение: Re: Query with boolean parameter