psycopg.git / summary / log / commit / refs
commit 2170c19d5a91881ddfb1cb524434f9d4bb3cc775
Author: 0xTiger <me@tom.cv>
Commit: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Date: Fri Oct 25 17:50:11 2024 +0000
docs: explicit wording to clarify correspondence between `IS NOT DISTINCT FROM` & `IS`
docs/basic/from_pg2.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/basic/from_pg2.rst b/docs/basic/from_pg2.rst
index 6f5e375a..ef78bb38 100644
--- a/docs/basic/from_pg2.rst
+++ b/docs/basic/from_pg2.rst
@@ -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])
[parent: 50ec089e69f2]