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:
rogerswb 2013-05-23 14:58:19 -05:00
parent eeadcb54f3
commit 40d1ecd11f

View File

@ -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