summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugh Cole-Baker <sigmaris@gmail.com>2015-11-28 15:21:11 +0000
committerHugh Cole-Baker <sigmaris@gmail.com>2015-11-28 15:21:11 +0000
commit0438065a20f32e729e2f865c381bd92b8a5f6592 (patch)
tree71e791694b255a34104aa1aafa77f083b629be94
parent1202e140b9876cf202c56d2f41bbbb573e15a39d (diff)
downloadsqlalchemy-0438065a20f32e729e2f865c381bd92b8a5f6592.tar.gz
Fix a typo in the disconnect handling code examplepr/217
-rw-r--r--doc/build/core/pooling.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/build/core/pooling.rst b/doc/build/core/pooling.rst
index 094eff4c4..f9384fd60 100644
--- a/doc/build/core/pooling.rst
+++ b/doc/build/core/pooling.rst
@@ -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