]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Merge remote-tracking branch 'origin/pr/217'
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Nov 2015 17:55:26 +0000 (12:55 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Nov 2015 17:55:38 +0000 (12:55 -0500)
(cherry picked from commit 954aafa0645f6e1ccbcfdc358a9f2930a24461a4)

doc/build/core/pooling.rst

index 094eff4c4636f88b2710070e67f79d7adf33a219..f9384fd6044a2f9a7654b50ebfbcd3420923c972 100644 (file)
@@ -257,7 +257,7 @@ best way to do this is to make use of the
             # run a SELECT 1.   use a core select() so that
             # the SELECT of a scalar value without a table is
             # appropriately formatted for the backend
-            connection.scalar(select[1])
+            connection.scalar(select([1]))
         except exc.DBAPIError as err:
             # catch SQLAlchemy's DBAPIError, which is a wrapper
             # for the DBAPI's exception.  It includes a .connection_invalidated