Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.2
-
999d856bc8 (qt/qtbase/dev) 999d856bc8 (qt/tqtc-qtbase/dev) d2e8310680 (qt/qtbase/6.2.3) d2e8310680 (qt/tqtc-qtbase/6.2.3) 2d7c19fde2 (qt/qtbase/6.3) 2d7c19fde2 (qt/tqtc-qtbase/6.3) 3474ae0d40 (qt/qtbase/6.2) 3474ae0d40 (qt/tqtc-qtbase/6.2)
Description
The implementation of the Firebird/Interbase SQL driver does not reflect the change in QVariant from Qt5 to Qt6 where the QVariant does not return true for isNull() if the contained object returns true for isNull().
Note: This behavior has been changed from Qt 5, where isNull() would also return true if the variant contained an object of a builtin type with an isNull() method that returned true for that object.
The null check in the SQL driver is done before unpacking the QVariant which will leads to writing non null values for null values into the database. The driver should check if the variable is null after unpacking the QVariant based on the object type it's containing.
Attachments
Issue Links
- duplicates
-
QTBUG-98471 [REG: 5->6.2.1] Null QDateTime is not stored as NULL anymore in Oracle OCI
- Closed