]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix bindparam type param fixes #4220
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 1 Apr 2018 14:33:40 +0000 (10:33 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 1 Apr 2018 14:34:00 +0000 (10:34 -0400)
Change-Id: I0f40bc3145d4cab1a12d2174b9f0f60b4ce736f5
(cherry picked from commit 55371f4cffa730f65f1b687e9f6287d2ac189227)

doc/build/core/tutorial.rst

index 1069ae5c78f406db47ab0302a7c60c319ef9e91c..55e3b2be83b647acc182fcab7502925f6905557f 100644 (file)
@@ -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