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

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

    XMLWordPrintable

Details

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

    Description

      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().

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes