summaryrefslogtreecommitdiff
path: root/test/dialect/postgres.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-06-17 20:16:26 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-06-17 20:16:26 +0000
commit3bff98d530cbe83af2d0f421c20c8451a71ede38 (patch)
tree1f9e416f65b78b03a1db5e7ffc862af862bd48e6 /test/dialect/postgres.py
parentbe818baf28aac68fbb7934881b4539cb08e9aaa2 (diff)
downloadsqlalchemy-3bff98d530cbe83af2d0f421c20c8451a71ede38.tar.gz
test coverage for server side statement detection
Diffstat (limited to 'test/dialect/postgres.py')
-rw-r--r--test/dialect/postgres.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/dialect/postgres.py b/test/dialect/postgres.py
index 88bc0bb99..3a565abab 100644
--- a/test/dialect/postgres.py
+++ b/test/dialect/postgres.py
@@ -790,6 +790,16 @@ class ServerSideCursorsTest(TestBase, AssertsExecutionResults):
def tearDownAll(self):
ss_engine.dispose()
+ def test_uses_ss(self):
+ result = ss_engine.execute("select 1")
+ assert result.cursor.name
+
+ result = ss_engine.execute(text("select 1"))
+ assert result.cursor.name
+
+ result = ss_engine.execute(select([1]))
+ assert result.cursor.name
+
def test_roundtrip(self):
test_table = Table('test_table', MetaData(ss_engine),
Column('id', Integer, primary_key=True),