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