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

SQL_ATTR_CONNECTION_TIMEOUT does not seem to be working in QSqlDatabase::setConnectOptions()

    XMLWordPrintable

Details

    • Windows

    Description

      When connecting to MS SQL using QSqlDatabase, the SQL_ATTR_CONNECTION_TIMEOUT parameter does not seem to be working, and the timeout duration is not being respected after setting it using the line below:

      database.setConnectOptions("SQL_ATTR_CONNECTION_TIMEOUT=5");

       

      To reproduce the issue, run the attached example project.

      Attachments

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

        Activity

          People

            chehrlic Christian Ehrlicher
            mahdi.belila Mehdi Belila
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes