]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix missing column name in 1.x `IS NULL` example (#8595)
authorJochen Kupperschmidt <homework@nwsnet.de>
Thu, 6 Oct 2022 19:27:02 +0000 (21:27 +0200)
committerGitHub <noreply@github.com>
Thu, 6 Oct 2022 19:27:02 +0000 (21:27 +0200)
doc/build/core/tutorial.rst

index e0b3e179fd0321c994265055d5831c0c63ddb4b3..9ec74fead7ffe913bdc9261839e7c0a02d963be4 100644 (file)
@@ -822,7 +822,7 @@ objects is at :class:`.ColumnOperators`.
 
 * :meth:`IS NULL <.ColumnOperators.is_>`::
 
-    statement.where(users.c. == None)
+    statement.where(users.c.name == None)
 
     # alternatively, if pep8/linters are a concern
     statement.where(users.c.name.is_(None))