diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-05 19:23:08 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-05 19:23:08 +0000 |
commit | 5a70cb7fa5345696731eac48958bee804f241df3 (patch) | |
tree | 86752660ec681ca9fc0490cf6e67f9d3485a7fe3 /test/dialect/oracle.py | |
parent | 00c2077cbcddcbe22c8f356dd5b0a61a55d71186 (diff) | |
download | sqlalchemy-5a70cb7fa5345696731eac48958bee804f241df3.tar.gz |
- adjustments to oracle ROWID logic...recent oid changes mean we have to
use "rowid" against the select itself (i.e. its just...'rowid', no table name).
seems to work OK but not sure if issues will arise
- fixes to oracle bind param stuff to account for recent removal of ClauseParameters object.
Diffstat (limited to 'test/dialect/oracle.py')
-rw-r--r-- | test/dialect/oracle.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dialect/oracle.py b/test/dialect/oracle.py index 03b68d063..7d544fca5 100644 --- a/test/dialect/oracle.py +++ b/test/dialect/oracle.py @@ -46,17 +46,17 @@ class CompileTest(SQLCompileTest): s = select([t]).limit(10).offset(20) self.assert_compile(s, "SELECT col1, col2 FROM (SELECT sometable.col1 AS col1, sometable.col2 AS col2, " - "ROW_NUMBER() OVER (ORDER BY sometable.rowid) AS ora_rn FROM sometable) WHERE ora_rn>20 AND ora_rn<=30" + "ROW_NUMBER() OVER (ORDER BY rowid) AS ora_rn FROM sometable) WHERE ora_rn>20 AND ora_rn<=30" ) s = select([s.c.col1, s.c.col2]) self.assert_compile(s, "SELECT col1, col2 FROM (SELECT col1, col2 FROM (SELECT sometable.col1 AS col1, " - "sometable.col2 AS col2, ROW_NUMBER() OVER (ORDER BY sometable.rowid) AS ora_rn FROM sometable) WHERE ora_rn>20 AND ora_rn<=30)") + "sometable.col2 AS col2, ROW_NUMBER() OVER (ORDER BY rowid) AS ora_rn FROM sometable) WHERE ora_rn>20 AND ora_rn<=30)") # testing this twice to ensure oracle doesn't modify the original statement self.assert_compile(s, "SELECT col1, col2 FROM (SELECT col1, col2 FROM (SELECT sometable.col1 AS col1, " - "sometable.col2 AS col2, ROW_NUMBER() OVER (ORDER BY sometable.rowid) AS ora_rn FROM sometable) WHERE ora_rn>20 AND ora_rn<=30)") + "sometable.col2 AS col2, ROW_NUMBER() OVER (ORDER BY rowid) AS ora_rn FROM sometable) WHERE ora_rn>20 AND ora_rn<=30)") def test_outer_join(self): table1 = table('mytable', |