]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- this test is ridiculous, executemany() + returning not supported
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 9 Mar 2013 19:42:34 +0000 (14:42 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 9 Mar 2013 19:42:34 +0000 (14:42 -0500)
test/sql/test_returning.py

index a182444e94a1e745effa097540396223f7a2b047..6a42b0625d8c6dab42534e1c589c612d9ddab453 100644 (file)
@@ -88,26 +88,6 @@ class ReturningTest(fixtures.TestBase, AssertsExecutionResults):
 
         eq_(result.fetchall(), [(1,)])
 
-    @testing.fails_on('postgresql', 'undefined behavior')
-    @testing.fails_on('oracle+cx_oracle', 'undefined behavior')
-    @testing.crashes('mssql+mxodbc', 'Raises an error')
-    def test_insert_returning_execmany(self):
-
-        # 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('mssql+zxjdbc'):
-            # jtds apparently returns only the first row
-            eq_(result2.fetchall(), [(2, 2, False, None)])
-        elif testing.against('firebird', 'mssql', 'oracle'):
-            # Multiple inserts only return the last row
-            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)])
-
-
     @testing.requires.multivalues_inserts
     def test_multirow_returning(self):
         ins = table.insert().returning(table.c.id, table.c.persons).values(