Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.4.0
-
None
Description
When using an output variable for a stored procedure which is not set (isNull returns true), then the NULL flag is not reset when the call returns.
QVariant CMyClass::GetValue(QVariant::Type T) { QSqlQuery Query; Query.setForwardOnly(); //Necessary for a stored procdure Query.prepare("{call stored_procedure(?)}"); QVariant V(T); Query.addBindValue(V,QSql::Out); Query.exec(); return Query.boundValue(0); }
This code always returns a NULL Qvariant.