Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abdulwahidgul24085 opened this issue Jun 12, 2017 · 1 comment

Comments

@abdulwahidgul24085
Copy link

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.

@gmixo
Copy link

gmixo commented Jul 14, 2017

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

@dlo dlo added the help wanted label Feb 1, 2018
@dlo dlo added the bug label Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants