Remove quote on first DATEPART paramater

This commit is contained in:
Guillaume DOUMENC
2016-01-12 04:46:32 +00:00
parent 6fbfadc738
commit c4f415d979
+1 -1
View 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):