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

QSqlDatabase::addDatabase calls mysql api mysql_library_init(), which is not thread safe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.7.4, 4.8.0
    • SQL Support
    • None
    • Windows

      QSqlDatabase::addDatabase is thread safe as the documentation say but this function calls mysql api mysql_library_init() before applying the write lock. as per the documentation of mysql_library_init() this function is not thread safe.http://dev.mysql.com/doc/refman/5.0/en/mysql-library-init.html
      This function is being called from qLibraryInit() in constructor of QMYSQLDriver().

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

            mabrand Mark Brand
            qtcomsupport Qt Support
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes