]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Remove quote on first DATEPART paramater
authorGuillaume DOUMENC <gdoumenc@coworks.pro>
Tue, 12 Jan 2016 04:46:32 +0000 (04:46 +0000)
committerGuillaume DOUMENC <gdoumenc@coworks.pro>
Tue, 12 Jan 2016 04:46:32 +0000 (04:46 +0000)
lib/sqlalchemy/dialects/mssql/base.py

index 1ee328e83424341d7ad1378b082d7084dff7e5d9..815529c88daf7c5ba27f84f0bcefc465b4876939 100644 (file)
@@ -1157,7 +1157,7 @@ class MSSQLCompiler(compiler.SQLCompiler):
 
     def visit_extract(self, extract, **kw):
         field = self.extract_map.get(extract.field, extract.field)
-        return 'DATEPART("%s", %s)' % \
+        return 'DATEPART(%s, %s)' % \
             (field, self.process(extract.expr, **kw))
 
     def visit_savepoint(self, savepoint_stmt):