Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21326

The datatype 'bit' in MySQL is not supported in Qt

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.6.0
    • 4.7.4, 6.1
    • SQL Support
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            chehrlic Christian Ehrlicher
            ryuka Ryuka
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes