diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-12-27 13:40:27 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-12-27 13:40:27 -0500 |
| commit | 92a1426c06c49f5b3db8cc41afe0ed92e8631972 (patch) | |
| tree | 31bd99b1047e3d582242818041f0aa517eee214b /test/dialect/test_firebird.py | |
| parent | a51c41e6305c3fcd64bdb10f8b769acad8a7cbdc (diff) | |
| download | sqlalchemy-92a1426c06c49f5b3db8cc41afe0ed92e8631972.tar.gz | |
- The firebird dialect will quote identifiers which begin with an
underscore. Courtesy Treeve Jelbert. [ticket:2897]
Diffstat (limited to 'test/dialect/test_firebird.py')
| -rw-r--r-- | test/dialect/test_firebird.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/dialect/test_firebird.py b/test/dialect/test_firebird.py index 4a71b7d05..222e34b93 100644 --- a/test/dialect/test_firebird.py +++ b/test/dialect/test_firebird.py @@ -352,6 +352,15 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): for type_, args, kw, res in columns: self.assert_compile(type_(*args, **kw), res) + def test_quoting_initial_chars(self): + self.assert_compile( + column("_somecol"), + '"_somecol"' + ) + self.assert_compile( + column("$somecol"), + '"$somecol"' + ) class TypesTest(fixtures.TestBase): __only_on__ = 'firebird' |
