mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Merge pull request #185 from mjwoodcock/odbc-string-truncation
Don't include length of '\0' in SQLGetData pcbValue
This commit is contained in:
commit
514e0fded0
@ -1676,7 +1676,7 @@ SQLRETURN SQL_API SQLGetData(
|
||||
return SQL_NO_DATA;
|
||||
}
|
||||
if (pcbValue) {
|
||||
*pcbValue = len + 1 - stmt->pos;
|
||||
*pcbValue = len - stmt->pos;
|
||||
}
|
||||
if (cbValueMax == 0) {
|
||||
free(str);
|
||||
|
Loading…
Reference in New Issue
Block a user