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
SQL_C_BIT selection support [ODBC61] #62
Comments
Commented by: Andrei Litvin (andy_asigra) Maybe not the nicest solution, however one possibility would be to allow conversion from numeric types to SQL_C_BIT. At least on Windows, the BOOL data type is used, which occupies a byte, and on Firebird TinyInt is one byte long as well. As such, this patch works: Index: O:/devel/FirebirdODBC/OdbcConvert.cpp--- O:/devel/FirebirdODBC/OdbcConvert.cpp (revision 50726) |
Modified by: @alexpotapchenkoassignee: Alexander Potapchenko [ lightfore ] |
Commented by: @alexpotapchenko applied in CVS |
Modified by: @alexpotapchenkostatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 2.0.2 [ 10465 ] |
Modified by: @alexpotapchenkostatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: Andrei Litvin (andy_asigra)
Microsoft MFC will perform RFX_BOOL by trying to bing a result column as a SQL_C_BIT. However the Firebird ODBC driver does create any conversions from some data type to SQL_C_BIT, resulting in a failed transfer. Not even converting to char(1) (which is documented as the bit data type alternative) works.
Commits: 138eaa9 adee1d4
The text was updated successfully, but these errors were encountered: