diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-18 21:20:32 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-18 21:20:32 +0000 |
commit | 4e12db829599e95a8e015e5254b0d8e0c28fffdd (patch) | |
tree | 26436d5729d15a4f344c8d914d3783e29ccdae18 /test/dialect/firebird.py | |
parent | f96a514f4321782dee41c3a4f6f6c43e4d9c12e0 (diff) | |
download | sqlalchemy-4e12db829599e95a8e015e5254b0d8e0c28fffdd.tar.gz |
repaired FB functions, [ticket:862]
Diffstat (limited to 'test/dialect/firebird.py')
-rw-r--r-- | test/dialect/firebird.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/dialect/firebird.py b/test/dialect/firebird.py index 987507306..daf2abba6 100644 --- a/test/dialect/firebird.py +++ b/test/dialect/firebird.py @@ -20,6 +20,12 @@ class CompileTest(SQLCompileTest): s = select([t.alias()]) self.assert_compile(s, "SELECT sometable_1.col1, sometable_1.col2 FROM sometable sometable_1") - + def test_function(self): + self.assert_compile(func.foo(1, 2), "foo(:foo, :foo_1)") + self.assert_compile(func.current_time(), "current_time") + self.assert_compile(func.foo(), "foo") + t = table('sometable', column('col1'), column('col2')) + self.assert_compile(select([func.max(t.c.col1)]), "SELECT max(sometable.col1) FROM sometable") + if __name__ == '__main__': testbase.main() |