summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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(';')