Re: Query with boolean parameter

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

> On Mar 19, 2022, at 05:10, Paolo De Stefani <paolo@paolodestefani.it> wrote:
> Switching to psycopg 3 i have to consider many more differences than i expected

There have been some changes in the way psycopg2 does parameter substitution, although that one is an interesting case!
You might consider using IS DISTINCT FROM as Daniele suggested, or just =, depending on how you want nulls handled. 


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

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: Re: Query with boolean parameter
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Query with boolean parameter