diff --git a/mysql/qsql_mysql.cpp b/mysql/qsql_mysql.cpp index e22677c..2d06d4e 100644 --- a/mysql/qsql_mysql.cpp +++ b/mysql/qsql_mysql.cpp @@ -902,7 +902,7 @@ bool QMYSQLResult::exec() MYSQL_BIND* currBind = &d->outBinds[i]; - nullVector[i] = static_cast(val.isNull()); + nullVector[i] = static_cast(QSqlResultPrivate::isVariantNull(val)); currBind->is_null = &nullVector[i]; currBind->length = 0; currBind->is_unsigned = 0;