From: Xiaokui Shu Date: Mon, 8 Jan 2024 18:44:53 +0000 (-0500) Subject: fix code typo in doc:faq:sqlexpressions on `in_()` (#10845) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66cb236856cb458f34b5aa1e4f2ec737e1e45f76;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix code typo in doc:faq:sqlexpressions on `in_()` (#10845) --- diff --git a/doc/build/faq/sqlexpressions.rst b/doc/build/faq/sqlexpressions.rst index 051d5cca20..7a03bdb036 100644 --- a/doc/build/faq/sqlexpressions.rst +++ b/doc/build/faq/sqlexpressions.rst @@ -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`: