django-pyodbc icon indicating copy to clipboard operation
django-pyodbc copied to clipboard

pyodbc.DataError: Conversion failed when converting da te and/or time from character string

Open abdulwahidgul24085 opened this issue 7 years ago • 1 comments

I get the following error when I try to create a superuser. Following is the like of code that it tells me which has the error.

  File "D:\path\virtual_venv\lib\site-packages\django_pyodbc\base.py", line 489, in execute
    return self.cursor.execute(sql, params)
pyodbc.DataError: ('22007', '[22007] [Microsoft][ODBC SQL Server Driver][SQL Server]Conversion failed when converting da
te and/or time from character string. (241) (SQLExecDirectW)')

I hope someone can let me know the solution for this problem.

abdulwahidgul24085 avatar Jun 12 '17 12:06 abdulwahidgul24085

solved by querying raw request on model, works fine. Fix this would be useful

gmixo avatar Jul 14 '17 02:07 gmixo