mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-01-23 21:32:11 +08:00
ODBC GetData include \0 if fCType==SQL_C_CHAR
This commit is contained in:
@@ -1788,7 +1788,7 @@ static SQLRETURN SQL_API _SQLGetData(
|
||||
{
|
||||
char *str = mdb_col_to_string(mdb, mdb->pg_buf,
|
||||
col->cur_value_start, col->col_type, col->cur_value_len);
|
||||
int len = strlen(str);
|
||||
int len = strlen(str) + 1; // including \0
|
||||
if (stmt->pos >= len) {
|
||||
free(str);
|
||||
return SQL_NO_DATA;
|
||||
|
||||
Reference in New Issue
Block a user