]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs: specify that ANY() is available in psycopg2 too
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 18 Mar 2022 16:00:51 +0000 (17:00 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 18 Mar 2022 16:00:51 +0000 (17:00 +0100)
docs/basic/from_pg2.rst

index 7f2986da746fd64209ff4c4a2da48b0105f096a9..6dbc2802517166bb33f72efa939fccb77954098b 100644 (file)
@@ -160,8 +160,9 @@ array::
 
     >>> conn.execute("SELECT * FROM foo WHERE id = ANY(%s)", [[10,20,30]])
 
-Note that this variant is also superior because, unlike :sql:`IN`, it works
-with an empty list of values.
+Note that `ANY()` can be used with ``psycopg2`` too, and has the advantage of
+accepting an empty list of values too as argument, which is not supported by
+the :sql:`IN` operator instead.
 
 .. __: https://www.postgresql.org/docs/current/functions-comparisons.html
     #id-1.5.8.30.16