summaryrefslogtreecommitdiff
path: root/test/sql/functions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-03-25 17:25:20 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-03-25 17:25:20 +0000
commitfc2cf22038e575670ee2edc890f8dfbc07d9bfa7 (patch)
tree36cf2f89b6eca2353d5febbabfc61f94d253039c /test/sql/functions.py
parent92a5df77538069efd9f8cfc14cf83807ce43c288 (diff)
downloadsqlalchemy-fc2cf22038e575670ee2edc890f8dfbc07d9bfa7.tar.gz
- fixed SQL function truncation of trailing underscores
[ticket:996]
Diffstat (limited to 'test/sql/functions.py')
-rw-r--r--test/sql/functions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/sql/functions.py b/test/sql/functions.py
index e5c59b091..d1ce17c72 100644
--- a/test/sql/functions.py
+++ b/test/sql/functions.py
@@ -32,7 +32,10 @@ class CompileTest(TestBase, AssertsCompiledSQL):
else:
self.assert_compile(func.nosuchfunction(), "nosuchfunction()", dialect=dialect)
self.assert_compile(func.char_length('foo'), "char_length(%s)" % bindtemplate % {'name':'param_1', 'position':1}, dialect=dialect)
-
+
+ def test_underscores(self):
+ self.assert_compile(func.if_(), "if()")
+
def test_generic_now(self):
assert isinstance(func.now().type, sqltypes.DateTime)