mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-07-18 00:08:37 +08:00
Don't include length of '\0' in SQLGetData pcbValue
SQLGetData() should return the length of the string without the null terminator.
This commit is contained in:
parent
d0d95f6503
commit
06868e58ae
@ -1676,7 +1676,7 @@ SQLRETURN SQL_API SQLGetData(
|
|||||||
return SQL_NO_DATA;
|
return SQL_NO_DATA;
|
||||||
}
|
}
|
||||||
if (pcbValue) {
|
if (pcbValue) {
|
||||||
*pcbValue = len + 1 - stmt->pos;
|
*pcbValue = len - stmt->pos;
|
||||||
}
|
}
|
||||||
if (cbValueMax == 0) {
|
if (cbValueMax == 0) {
|
||||||
free(str);
|
free(str);
|
||||||
|
Loading…
Reference in New Issue
Block a user