mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
Merge pull request #14 from nyalldawson/char_len
Correctly return len of character data when SQLColAttributes is called with SQL_COLUMN_TYPE_NAME
This commit is contained in:
+1
-1
@@ -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