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

Datetime field overflow for MSSQL #47

Closed
MathMagique opened this issue Feb 17, 2017 · 1 comment
Closed

Datetime field overflow for MSSQL #47

MathMagique opened this issue Feb 17, 2017 · 1 comment

Comments

@MathMagique
Copy link
Member

When using a DATETIME2 parameter with non-zero fractional seconds for MSSQL databases, the following error message occurs:

[Microsoft][ODBC Driver 13 for SQL Server]Datetime field overflow. Fractional second precision exceeds the scale specified in the parameter binding.
@MathMagique
Copy link
Member Author

This is related to the precision parameter for SQLBindParameter(), see https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlbindparameter-function for details. Currently, this value is always set to 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant