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

QMYSQLDriver::open returns success when should fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.5.1
    • 5.5.0
    • SQL Support
    • None
    • mingw
    • 0de6c52bfe2433eca768a5f6fe9d5f08a545c254

    Description

      QMYSQLDriver::open() calls

      if (mysql_real_connect(d->mysql, ...

      (E:\Qt\Qt5.5.0\5.5\Src\qtbase\src\sql\drivers\mysql\qsql_mysql.cpp:1285)

      but that 'if' doesn't have 'else' statement, so when mysql_real_connect fails, Qt thinks anyway that all is fine.

      Attachments

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

        Activity

          People

            mabrand Mark Brand
            zandr Andrei Zakharov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes