summaryrefslogtreecommitdiff
path: root/test/engine/execute.py
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2008-10-04 23:19:05 +0000
committerMichael Trier <mtrier@gmail.com>2008-10-04 23:19:05 +0000
commitc9afdb5072ccaffb73e29853dbade1eb0237157b (patch)
treefe63cac873cca41ca3431def148f9a733823b240 /test/engine/execute.py
parenta9a4da62cfe4a7dbe6afff1f993e161e8243a6dc (diff)
downloadsqlalchemy-c9afdb5072ccaffb73e29853dbade1eb0237157b.tar.gz
Corrects issue where engine.execute raised exception when given empty list. Fixes #1175.
Diffstat (limited to 'test/engine/execute.py')
-rw-r--r--test/engine/execute.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/engine/execute.py b/test/engine/execute.py
index 80f4e390c..e449af9ad 100644
--- a/test/engine/execute.py
+++ b/test/engine/execute.py
@@ -78,6 +78,13 @@ class ExecuteTest(TestBase):
except tsa.exc.DBAPIError:
assert True
+ def test_empty_insert(self):
+ try:
+ result = testing.db.execute(users.insert(), [])
+ assert [] == list(result)
+ except:
+ assert False
+
class ProxyConnectionTest(TestBase):
@testing.fails_on('firebird') # Data type unknown
def test_proxy(self):