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

QSqlDatabase::database() should print a warning when called from the wrong thread

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P4: Low
    • 5.11.0 Alpha
    • 4.1.4
    • SQL Support
    • None
    • 9b361f0e90fb1c154a16e65ec087ad36d5cca9b4

    Description

      Since QSqlDatabase objects can't be shared between threads, it would be helpful if QSqlDatabase::database() would check that it's called in the thread where the asked-for QSqlDatabase lives.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-216
          # Subject Branch Project Status CR V

          Activity

            People

              andysh Andy Shaw
              admin Administrator
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes