summaryrefslogtreecommitdiff
path: root/test/sql/labels.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-10-18 18:14:06 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-10-18 18:14:06 +0000
commita20222fc22059df30b09b49621a784b54919613a (patch)
tree99d99b2516fa81520ae1878e31e638f188ccc40f /test/sql/labels.py
parent223bd3688dfd01f9dff973cbf9b3d92f39df4c21 (diff)
downloadsqlalchemy-a20222fc22059df30b09b49621a784b54919613a.tar.gz
- 0.5.0rc3, doh
- The internal notion of an "OID" or "ROWID" column has been removed. It's basically not used by any dialect, and the possibility of its usage with psycopg2's cursor.lastrowid is basically gone now that INSERT..RETURNING is available. - Removed "default_order_by()" method on all FromClause objects. - profile/compile/select test is 8 function calls over on buildbot 2.4 for some reason, will adjust after checking the results of this commit
Diffstat (limited to 'test/sql/labels.py')
-rw-r--r--test/sql/labels.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/sql/labels.py b/test/sql/labels.py
index 3e025e5e7..a0f49f3f1 100644
--- a/test/sql/labels.py
+++ b/test/sql/labels.py
@@ -137,16 +137,5 @@ class LongLabelsTest(TestBase, AssertsCompiledSQL):
print x.execute().fetchall()
- def test_oid(self):
- """test that a primary key column compiled as the 'oid' column gets proper length truncation"""
- from sqlalchemy.databases import postgres
- dialect = postgres.PGDialect()
- dialect.max_identifier_length = 30
- tt = table1.select(use_labels=True).alias('foo')
- x = select([tt], use_labels=True, order_by=tt.oid_column).compile(dialect=dialect)
- #print x
- # assert it doesnt end with "ORDER BY foo.some_large_named_table_this_is_the_primarykey_column"
- assert str(x).endswith("""ORDER BY foo.some_large_named_table_t_2""")
-
if __name__ == '__main__':
testenv.main()