1
from sqlalchemy import *
2
from sqlalchemy import sql
3
from sqlalchemy.databases import access
7
class CompileTest(fixtures.TestBase, AssertsCompiledSQL):
8
__dialect__ = access.dialect()
10
def test_extract(self):
11
t = sql.table('t', sql.column('col1'))
26
for field, subst in mapping.items():
28
select([extract(field, t.c.col1)]),
29
'SELECT DATEPART("%s", t.col1) AS anon_1 FROM t' % subst)