diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-03-09 14:42:34 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-03-09 14:42:34 -0500 |
| commit | 8ef3ed1032e0354cffa786f25bac2c54a3bcd54d (patch) | |
| tree | cdae89b2aade06ccbd2ff4e4b9eb23ce109d5953 /test/sql | |
| parent | 852e9954aaec7205e7ebaf3d0b232e1e8ff20e63 (diff) | |
| download | sqlalchemy-8ef3ed1032e0354cffa786f25bac2c54a3bcd54d.tar.gz | |
- this test is ridiculous, executemany() + returning not supported
Diffstat (limited to 'test/sql')
| -rw-r--r-- | test/sql/test_returning.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/sql/test_returning.py b/test/sql/test_returning.py index a182444e9..6a42b0625 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( |
