diff options
author | Jim Phares <jim.phares@pcusa.org> | 2011-03-15 16:56:45 -0400 |
---|---|---|
committer | Jim Phares <jim.phares@pcusa.org> | 2011-03-15 16:56:45 -0400 |
commit | fde2a7f8fe5fd16891ddff99511e2ed3c8eb9ab6 (patch) | |
tree | 211988f48bd76a2f9b83f4599fded85a1dc7676a /test/dialect/test_postgresql.py | |
parent | c594b58f0b8cf72d49cc6bf748b5e4851a1f9c2c (diff) | |
download | sqlalchemy-fde2a7f8fe5fd16891ddff99511e2ed3c8eb9ab6.tar.gz |
Informix and postgresql reserved words changes -- almost done.
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r-- | test/dialect/test_postgresql.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index 149421404..020a92bf3 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -220,6 +220,16 @@ class CompileTest(TestBase, AssertsCompiledSQL): 'anon_1 FROM t' % (field, compiled_expr)) + def test_reserved_words(self): + table = Table("pg_table", MetaData(), + Column("col1", Integer), + Column("variadic", Integer)) + x = select([table.c.col1, table.c.variadic]) + + self.assert_compile(x, + '''SELECT pg_table.col1, pg_table."variadic" FROM pg_table''') + + class FloatCoercionTest(TablesTest, AssertsExecutionResults): __only_on__ = 'postgresql' __dialect__ = postgresql.dialect() |