summaryrefslogtreecommitdiff
path: root/test/ext/test_sqlsoup.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-01-16 18:04:11 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2010-01-16 18:04:11 +0000
commit8c660d461189a6611b855cf115990b1f08a67220 (patch)
treec5dfe6b86c473282fd62afe9da3afcb70d7b58ba /test/ext/test_sqlsoup.py
parentabdf3a22ccb23f2cfc7e5cf8b815c62f925d7b0d (diff)
downloadsqlalchemy-8c660d461189a6611b855cf115990b1f08a67220.tar.gz
- sqlsoup objects no longer have the 'query' attribute - it's
not needed for sqlsoup's usage paradigm and it gets in the way of a column that is actually named 'query'.
Diffstat (limited to 'test/ext/test_sqlsoup.py')
-rw-r--r--test/ext/test_sqlsoup.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/ext/test_sqlsoup.py b/test/ext/test_sqlsoup.py
index f94a52c81..9904b982d 100644
--- a/test/ext/test_sqlsoup.py
+++ b/test/ext/test_sqlsoup.py
@@ -29,7 +29,12 @@ class SQLSoupTest(TestBase):
for sql in _teardown:
engine.execute(sql)
-
+ def test_bad_names(self):
+ db = sqlsoup.SqlSoup(engine)
+# print db.bad_names.c.id
+ print db.bad_names.c.query
+
+
def test_load(self):
db = sqlsoup.SqlSoup(engine)
MappedUsers = db.users
@@ -329,6 +334,11 @@ CREATE TABLE loans (
CREATE TABLE nopk (
i int
);
+
+CREATE TABLE bad_names (
+ id int primary key,
+ query varchar(100)
+)
""".split(';')