mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Correctly return len of character data when SQLColAttributes is called with SQL_COLUMN_TYPE_NAME
This commit is contained in:
parent
362938f17c
commit
3f278f3996
@ -839,7 +839,7 @@ SQLRETURN SQL_API SQLColAttributes(
|
||||
{
|
||||
const char *type_name = _odbc_get_client_type_name(col);
|
||||
if (type_name)
|
||||
snprintf(rgbDesc, cbDescMax, "%s", type_name);
|
||||
*pcbDesc = snprintf(rgbDesc, cbDescMax, "%s", type_name);
|
||||
break;
|
||||
}
|
||||
case SQL_COLUMN_LENGTH:
|
||||
|
Loading…
Reference in New Issue
Block a user