summaryrefslogtreecommitdiff
path: root/test/dialect/mssql.py
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2008-10-11 16:14:20 +0000
committerMichael Trier <mtrier@gmail.com>2008-10-11 16:14:20 +0000
commit41e1f5526cf24131f6365de2c48f39748504daf2 (patch)
treefc87f0132b7fee1cca7870929286070dcb8e7bd2 /test/dialect/mssql.py
parentb3c39decc1b992bcb7c1bb7cad452dcea5991f20 (diff)
downloadsqlalchemy-41e1f5526cf24131f6365de2c48f39748504daf2.tar.gz
Removed the visit_function stuff in mssql dialect. Added some tests for the function overrides. Fixed up the test_select in the sql/defaults.py tests which was a mess.
Diffstat (limited to 'test/dialect/mssql.py')
-rwxr-xr-xtest/dialect/mssql.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dialect/mssql.py b/test/dialect/mssql.py
index 26f8892bd..02c583d5d 100755
--- a/test/dialect/mssql.py
+++ b/test/dialect/mssql.py
@@ -105,6 +105,10 @@ class CompileTest(TestBase, AssertsCompiledSQL):
t = Table('sometable', m, Column('col1', Integer), Column('col2', Integer))
self.assert_compile(select([func.max(t.c.col1)]), "SELECT max(sometable.col1) AS max_1 FROM sometable")
+ def test_function_overrides(self):
+ self.assert_compile(func.current_date(), "GETDATE()")
+ self.assert_compile(func.length(3), "LEN(:length_1)")
+
class ReflectionTest(TestBase):
__only_on__ = 'mssql'