summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2009-09-11 08:10:32 +0000
committerPhilip Jenvey <pjenvey@underboss.org>2009-09-11 08:10:32 +0000
commitf385260987da45ce140edba986b1ac0c2a6a9e35 (patch)
tree087e9236e9d1bfa46563be149a06c8fffeeaf408 /test/sql
parent0c26713326f8e9367e58f9c693455b055a1aef8c (diff)
downloadsqlalchemy-f385260987da45ce140edba986b1ac0c2a6a9e35.tar.gz
mssql+zxjdbc support
original patch from Victor Ng fixes #1505
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_returning.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/sql/test_returning.py b/test/sql/test_returning.py
index d76c76173..8ba754c67 100644
--- a/test/sql/test_returning.py
+++ b/test/sql/test_returning.py
@@ -99,13 +99,16 @@ class ReturningTest(TestBase, AssertsExecutionResults):
# return value is documented as failing with psycopg2/executemany
result2 = table.insert().returning(table).execute(
[{'persons': 2, 'full': False}, {'persons': 3, 'full': True}])
-
- if testing.against('firebird', 'mssql'):
+
+ if testing.against('mssql+zxjdbc'):
+ # jtds apparently returns only the first row
+ eq_(result2.fetchall(), [(2, 2, False, None)])
+ elif testing.against('firebird', 'mssql'):
# Multiple inserts only return the last row
- eq_(result2.fetchall(), [(3,3,True, None)])
+ eq_(result2.fetchall(), [(3, 3, True, None)])
else:
# nobody does this as far as we know (pg8000?)
- eq_(result2.fetchall(), [(2, 2, False, None), (3,3,True, None)])
+ eq_(result2.fetchall(), [(2, 2, False, None), (3, 3, True, None)])
test_executemany()