From: Mike Bayer Date: Sun, 1 Apr 2018 14:33:40 +0000 (-0400) Subject: Fix bindparam type param fixes #4220 X-Git-Tag: rel_1_3_0b1~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55371f4cffa730f65f1b687e9f6287d2ac189227;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix bindparam type param fixes #4220 Change-Id: I0f40bc3145d4cab1a12d2174b9f0f60b4ce736f5 --- diff --git a/doc/build/core/tutorial.rst b/doc/build/core/tutorial.rst index 79057e678d..65410f7bae 100644 --- a/doc/build/core/tutorial.rst +++ b/doc/build/core/tutorial.rst @@ -821,7 +821,7 @@ using the :meth:`.TextClause.bindparams` method:: The parameters can also be explicitly typed:: - stmt = stmt.bindparams(bindparam("x", String), bindparam("y", String)) + stmt = stmt.bindparams(bindparam("x", type_=String), bindparam("y", type_=String)) result = conn.execute(stmt, {"x": "m", "y": "z"}) Typing for bound parameters is necessary when the type requires Python-side