(self)
| 353 | self.assert_compile(fn, "coalesce(:coalesce_1, :coalesce_2)") |
| 354 | |
| 355 | def test_annotation_dialect_specific(self): |
| 356 | fn = func.current_date() |
| 357 | self.assert_compile(fn, "CURRENT_DATE", dialect="sqlite") |
| 358 | |
| 359 | fn = fn._annotate({"foo": "bar"}) |
| 360 | self.assert_compile(fn, "CURRENT_DATE", dialect="sqlite") |
| 361 | |
| 362 | def test_custom_default_namespace(self): |
| 363 | class myfunc(GenericFunction): |
nothing calls this directly
no test coverage detected