Datepart wrong first parameter on MSSQL engine

Issue #3624 resolved
Guillaume DOUMENC (NeoRezo) created an issue

Using mssql+pyodbc and extract expression, I get :

[FreeTDS][SQL Server]Invalid parameter 1 specified for datepart.

The reason is that first parameter don't need quotes. MMSQL ref : https://technet.microsoft.com/en-us/library/aa258265%28v=sql.80%29.aspx

I will provide a pull for fixing it

Comments (5)

  1. Log in to comment