From: Mike Bayer Date: Sat, 9 Mar 2013 19:42:34 +0000 (-0500) Subject: - this test is ridiculous, executemany() + returning not supported X-Git-Tag: rel_0_8_0~5^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ef3ed1032e0354cffa786f25bac2c54a3bcd54d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - this test is ridiculous, executemany() + returning not supported --- 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(