From: Mike Bayer Date: Sat, 25 Aug 2012 18:19:47 +0000 (-0400) Subject: oracle fixes... X-Git-Tag: rel_0_8_0b1~205^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4ff3d2a35af1daa36f8cdbff8d72d08dfa8738e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git oracle fixes... --- diff --git a/test/dialect/test_oracle.py b/test/dialect/test_oracle.py index fa6e4a85fe..25d3cab166 100644 --- a/test/dialect/test_oracle.py +++ b/test/dialect/test_oracle.py @@ -1312,13 +1312,15 @@ class BufferedColumnTest(fixtures.TestBase, AssertsCompiledSQL): meta.drop_all() def test_fetch(self): - result = binary_table.select().execute().fetchall() + result = binary_table.select().order_by(binary_table.c.id).\ + execute().fetchall() eq_(result, [(i, stream) for i in range(1, 11)]) @testing.fails_on('+zxjdbc', 'FIXME: zxjdbc should support this') def test_fetch_single_arraysize(self): - eng = testing_engine(options={'arraysize':1}) - result = eng.execute(binary_table.select()).fetchall() + eng = testing_engine(options={'arraysize': 1}) + result = eng.execute(binary_table.select(). + order_by(binary_table.c.id)).fetchall() eq_(result, [(i, stream) for i in range(1, 11)]) class UnsupportedIndexReflectTest(fixtures.TestBase): diff --git a/test/sql/test_returning.py b/test/sql/test_returning.py index ac5c69e523..c1ee900efd 100644 --- a/test/sql/test_returning.py +++ b/test/sql/test_returning.py @@ -71,12 +71,12 @@ class ReturningTest(fixtures.TestBase, AssertsExecutionResults): result = table.insert().values(goofy="someOTHERgoofy").\ returning(func.lower(table.c.goofy, type_=GoofyType)).execute() row = result.first() - assert row[0] == "foosomeothergoofyBAR" + eq_(row[0], "foosomeothergoofyBAR") result = table.insert().values(persons=12).\ returning(table.c.persons + 18).execute() row = result.first() - assert row[0] == 30 + eq_(row[0], 30) @testing.exclude('firebird', '<', (2, 1), '2.1+ feature') @testing.exclude('postgresql', '<', (8, 2), '8.2+ feature')