(self, connection)
| 1410 | pass |
| 1411 | |
| 1412 | def test_conn_execute(self, connection): |
| 1413 | from sqlalchemy.sql.expression import FunctionElement |
| 1414 | from sqlalchemy.ext.compiler import compiles |
| 1415 | |
| 1416 | class myfunc(FunctionElement): |
| 1417 | inherit_cache = True |
| 1418 | type = Date() |
| 1419 | |
| 1420 | @compiles(myfunc) |
| 1421 | def compile_(elem, compiler, **kw): |
| 1422 | return compiler.process(func.current_date()) |
| 1423 | |
| 1424 | x = connection.execute(func.current_date()).scalar() |
| 1425 | y = connection.execute(func.current_date().select()).scalar() |
| 1426 | z = connection.scalar(func.current_date()) |
| 1427 | q = connection.scalar(myfunc()) |
| 1428 | |
| 1429 | assert (x == y == z == q) is True |
| 1430 | |
| 1431 | def test_exec_options(self, connection): |
| 1432 | f = func.foo() |
nothing calls this directly
no test coverage detected