Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
4.7.4, 6.1
-
None
-
Win 7 with Visual Studio 2008
-
30de1f74d (dev)
Description
In MySQL database, the 'bit' datatype is not supported. QSqlquery.value() return a QVariant which is an empty string.I check QT 's source code,find it is not supported.
At (src\sql\drivers\mysql\qsql_mysql.cpp : function qDecodeMYSQLType () ): the default case of the type switch return an empty string.
I hope qt will support the 'bit' datatype and return a bool variant ,otherwise please return a invalid QVariant, not an empty string which always true by call the toBool() function.