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 value 1800-01-01 as parameter for SQL statement produces "value out of range" error [ODBC154] #46

Closed
firebird-automations opened this issue Oct 15, 2012 · 5 comments

Comments

@firebird-automations
Copy link

Submitted by: Mark Junker (fubar-coder)

Attachments:
odbc-datetime-parameter-1800-01-01.patch

When you create a SQL query with DATETIME parameters with a value of 1800-01-01 produces a "value out of range" error from the database. The problem is the MAKEQUAD function in OdbcConvert.cpp which returns invalid values for "a" (on little endian machines) when "a" is a value < 0.
I'll add a patch for this problem.

Commits: 4b90e5d c9abb15

@firebird-automations
Copy link
Author

Commented by: Mark Junker (fubar-coder)

This patch allows to use DATETIME parameters with values such as '1800-01-01'

@firebird-automations
Copy link
Author

Modified by: Mark Junker (fubar-coder)

Attachment: odbc-datetime-parameter-1800-01-01.patch [ 12240 ]

@firebird-automations
Copy link
Author

Commented by: @alexpotapchenko

Fixed in CVS. Thanks

@firebird-automations
Copy link
Author

Modified by: @alexpotapchenko

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.0.2 [ 10465 ]

@firebird-automations
Copy link
Author

Modified by: @alexpotapchenko

status: Resolved [ 5 ] => Closed [ 6 ]

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

2 participants