]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix code typo in doc:faq:sqlexpressions on `in_()` (#10845)
authorXiaokui Shu <subbyte@gmail.com>
Mon, 8 Jan 2024 18:44:53 +0000 (13:44 -0500)
committerGitHub <noreply@github.com>
Mon, 8 Jan 2024 18:44:53 +0000 (19:44 +0100)
doc/build/faq/sqlexpressions.rst

index 051d5cca2049ecd87e6055aa888d0f0d5e684b2b..7a03bdb0362967d360f0ef3cf30c9db41f777cc9 100644 (file)
@@ -319,7 +319,7 @@ known values are passed.   "Expanding" parameters are used for
 string can be safely cached independently of the actual lists of values
 being passed to a particular invocation of :meth:`_sql.ColumnOperators.in_`::
 
-  >>> stmt = select(A).where(A.id.in_[1, 2, 3])
+  >>> stmt = select(A).where(A.id.in_([1, 2, 3]))
 
 To render the IN clause with real bound parameter symbols, use the
 ``render_postcompile=True`` flag with :meth:`_sql.ClauseElement.compile`: