(self)
| 996 | ) |
| 997 | |
| 998 | def test_function(self): |
| 999 | self.assert_compile(func.foo(1, 2), "foo(:foo_1, :foo_2)") |
| 1000 | self.assert_compile(func.current_time(), "CURRENT_TIME") |
| 1001 | self.assert_compile(func.foo(), "foo()") |
| 1002 | m = MetaData() |
| 1003 | t = Table( |
| 1004 | "sometable", m, Column("col1", Integer), Column("col2", Integer) |
| 1005 | ) |
| 1006 | self.assert_compile( |
| 1007 | select(func.max(t.c.col1)), |
| 1008 | "SELECT max(sometable.col1) AS max_1 FROM sometable", |
| 1009 | ) |
| 1010 | |
| 1011 | def test_function_overrides(self): |
| 1012 | self.assert_compile(func.current_date(), "GETDATE()") |
nothing calls this directly
no test coverage detected