mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-27 11:01:44 -04:00
- there was a DATEPART test after all, fix format
(cherry picked from commit 0ff3f95d5b)
This commit is contained in:
@@ -383,7 +383,7 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL):
|
||||
for field in 'day', 'month', 'year':
|
||||
self.assert_compile(
|
||||
select([extract(field, t.c.col1)]),
|
||||
'SELECT DATEPART("%s", t.col1) AS anon_1 FROM t' % field)
|
||||
'SELECT DATEPART(%s, t.col1) AS anon_1 FROM t' % field)
|
||||
|
||||
def test_update_returning(self):
|
||||
table1 = table(
|
||||
|
||||
Reference in New Issue
Block a user