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

QMYSQLDriver::open returns success when should fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.5.1
    • Component/s: SQL Support
    • Labels:
      None
    • Environment:
      mingw
    • Commits:
      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

            Assignee:
            mabrand Mark Brand
            Reporter:
            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