We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, auto_bind_columns collapses numeric types into SQL_C_SBIGINT as a common type:
auto_bind_columns
SQL_C_SBIGINT
nanodbc/nanodbc/nanodbc.cpp
Lines 3804 to 3813 in 2dc94b9
This should be fine grained to something like
switch (col.sqltype_) { case SQL_BIT: col.ctype_ = SQL_C_BIT; col.clen_ = sizeof(uint8_t); break; case SQL_TINYINT: col.ctype_ = SQL_C_STINYINT; col.clen_ = sizeof(int8_t); break; case SQL_SMALLINT: col.ctype_ = SQL_C_SSHORT; col.clen_ = sizeof(int16_t); break; case SQL_INTEGER: col.ctype_ = SQL_C_SLONG; col.clen_ = sizeof(int32_t); break; case SQL_BIGINT: col.ctype_ = SQL_C_SBIGINT; col.clen_ = sizeof(int64_t); break;
The text was updated successfully, but these errors were encountered:
mloskot
Successfully merging a pull request may close this issue.
Currently,
auto_bind_columns
collapses numeric types intoSQL_C_SBIGINT
as a common type:nanodbc/nanodbc/nanodbc.cpp
Lines 3804 to 3813 in 2dc94b9
This should be fine grained to something like
The text was updated successfully, but these errors were encountered: