]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix a typo in the disconnect handling code example
authorHugh Cole-Baker <sigmaris@gmail.com>
Sat, 28 Nov 2015 15:21:11 +0000 (15:21 +0000)
committerHugh Cole-Baker <sigmaris@gmail.com>
Sat, 28 Nov 2015 15:21:11 +0000 (15:21 +0000)
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