summaryrefslogtreecommitdiff
path: root/test/sql/query.py
diff options
context:
space:
mode:
authorPaul Johnston <paj@pajhome.org.uk>2007-07-17 20:13:36 +0000
committerPaul Johnston <paj@pajhome.org.uk>2007-07-17 20:13:36 +0000
commita966505992b94ec1cc0633aafa7dda0a287fb96c (patch)
treeb2c40729792b7ab343169f6ddcc2667c778ee00e /test/sql/query.py
parent1dba9d48c28d59523f952d5e6b2f1425450cd7db (diff)
downloadsqlalchemy-a966505992b94ec1cc0633aafa7dda0a287fb96c.tar.gz
Properly escape table names when reflecting for mssql and sqlite [ticket:653]
Diffstat (limited to 'test/sql/query.py')
-rw-r--r--test/sql/query.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/sql/query.py b/test/sql/query.py
index 91587bc0e..8af5aafea 100644
--- a/test/sql/query.py
+++ b/test/sql/query.py
@@ -458,6 +458,22 @@ class QueryTest(PersistTest):
finally:
tbl.drop()
con.execute('drop schema paj')
+
+ @testbase.supported('mssql')
+ def test_insertid_reserved(self):
+ meta = MetaData(testbase.db)
+ table = Table(
+ 'select', meta,
+ Column('col', Integer, primary_key=True)
+ )
+ table.create()
+
+ meta2 = MetaData(testbase.db)
+ try:
+ table.insert().execute(col=7)
+ finally:
+ table.drop()
+
def test_in_filtering(self):
"""test the 'shortname' field on BindParamClause."""