summaryrefslogtreecommitdiff
path: root/test/dialect/test_firebird.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-12-27 13:40:27 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2013-12-27 13:40:27 -0500
commit92a1426c06c49f5b3db8cc41afe0ed92e8631972 (patch)
tree31bd99b1047e3d582242818041f0aa517eee214b /test/dialect/test_firebird.py
parenta51c41e6305c3fcd64bdb10f8b769acad8a7cbdc (diff)
downloadsqlalchemy-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.py9
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'