Re: Query with boolean parameter - Mailing list psycopg

From Christophe Pettus
Subject Re: Query with boolean parameter
Date
Msg-id 74FC637F-2D25-4CD0-A075-9CB5293FCA5B@thebuild.com
Whole thread Raw
In response to Query with boolean parameter  (Paolo De Stefani <paolo@paolodestefani.it>)
Responses Re: Query with boolean parameter  (Paolo De Stefani <paolo@paolodestefani.it>)
List 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 by date:

Previous
From: Paolo De Stefani
Date:
Subject: Query with boolean parameter
Next
From: Paolo De Stefani
Date:
Subject: Re: Query with boolean parameter