From 8ef3ed1032e0354cffa786f25bac2c54a3bcd54d Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 9 Mar 2013 14:42:34 -0500 Subject: [PATCH] - this test is ridiculous, executemany() + returning not supported --- test/sql/test_returning.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/test/sql/test_returning.py b/test/sql/test_returning.py index a182444e94..6a42b0625d 100644 --- a/test/sql/test_returning.py +++ b/test/sql/test_returning.py @@ -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( -- 2.47.3