mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Update _SQLGetData - Was incorrectly attempting to validate input of an output only parameter
According to the spec, pcbValue is designated as an output only variable, so there is no need to validate any incoming values. Some packages do not initialize this variable before passing it into the function call; this will randomly result in an improperly thrown error. Removed the input validation.
This commit is contained in:
parent
eeadcb54f3
commit
40d1ecd11f
@ -1538,10 +1538,6 @@ static SQLRETURN SQL_API _SQLGetData(
|
||||
strcpy(sqlState, "HY009");
|
||||
return SQL_ERROR;
|
||||
}
|
||||
if (pcbValue && *pcbValue<0) {
|
||||
strcpy(sqlState, "HY090");
|
||||
return SQL_ERROR;
|
||||
}
|
||||
|
||||
if (col->col_type == MDB_BOOL) {
|
||||
// bool cannot be null
|
||||
|
Loading…
Reference in New Issue
Block a user