]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs: explicit wording to clarify correspondence between `IS NOT DISTINCT FROM` ...
author0xTiger <me@tom.cv>
Fri, 25 Oct 2024 17:50:11 +0000 (18:50 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 30 Oct 2024 14:48:53 +0000 (15:48 +0100)
docs/basic/from_pg2.rst

index 6f5e375afc908926502847836e3405a976c169a2..ef78bb381277a8f3011e655f8b698140d98f3773 100644 (file)
@@ -282,8 +282,8 @@ Testing in psql:
     LINE 1: select 10 is 10;
                          ^
 
-What you can do instead is to use the `IS DISTINCT FROM operator`__, which
-will gladly accept a placeholder::
+What you can do instead is to use :sql:`IS NOT DISTINCT FROM %s` in place of
+:sql:`IS %s` (please pay attention to the awkwardly reversed :sql:`NOT`)::
 
     >>> conn.execute("SELECT * FROM foo WHERE field IS NOT DISTINCT FROM %s", [None])