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

Parameter conversions broken (nulls are coming into driver) [ODBC75] #74

Closed
firebird-automations opened this issue Sep 21, 2009 · 6 comments

Comments

@firebird-automations
Copy link

Submitted by: @samofatov

Assigned to: @samofatov

Duplicates ODBC140

If you try to set parameter values as a type different from a native data type for parameter - it may get interpreted as NULL.

for example query

select * from rdb$database where :a = '1'

if you set parameter :a to 1 as integer, it will get interpreted as as NULL value and you get no result row

This is due to broken conversion of ODBC indicator variables to XSQLDA equivalents during data type coercion in ODBC driver

Commits: 6122325 8249e04

@firebird-automations
Copy link
Author

Modified by: @samofatov

description: If you try to set parameter values as a type different from a native data type for parameter - it may get interpreted as NULL.

for example query

select * from rdb$database where :a = '1'

if you set parameter :a as NULL integer value

This is due to broken conversion of ODBC indicator variables to XSQLDA equivalents during data type coercion in ODBC driver

=>

If you try to set parameter values as a type different from a native data type for parameter - it may get interpreted as NULL.

for example query

select * from rdb$database where :a = '1'

if you set parameter :a to 1 as integer, it will get interpreted as as NULL value and you get no result row

This is due to broken conversion of ODBC indicator variables to XSQLDA equivalents during data type coercion in ODBC driver

@firebird-automations
Copy link
Author

Commented by: @samofatov

Roman Kisluhin has patched the issue in 2.1

@firebird-automations
Copy link
Author

Modified by: @samofatov

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

resolution: Fixed [ 1 ]

assignee: Nickolay Samofatov [ skidder ]

@firebird-automations
Copy link
Author

Modified by: @alexpotapchenko

Fix Version: 2.1 Beta [ 10410 ]

@firebird-automations
Copy link
Author

Modified by: @alexpotapchenko

Link: This issue duplicates ODBC140 [ ODBC140 ]

@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

1 participant