]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- there was a DATEPART test after all, fix format
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 14 Jan 2016 22:50:03 +0000 (17:50 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 14 Jan 2016 22:50:03 +0000 (17:50 -0500)
test/dialect/mssql/test_compiler.py

index 80be9f67d63da64cf843135684f9a6ea929b3258..d91c79db25f1f8d3f5935c5159a4061698751bb3 100644 (file)
@@ -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(