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

regression: ODBC connection strings no longer work with QSqlDatabase::setDatabaseName()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.7.1, 6.8.0 FF
    • 6.7.0 RC, 6.7.0, 6.7
    • SQL Support
    • None
    • All
    • 9873f4b28 (dev), 8f25cdc94 (6.7)

      ODBC connection strings such as the following example no longer work when passed to QSqlDatabase::setDatabaseName():

      DRIVER={ODBC Driver 18 for SQL Server};Server=localhost;Port=1433;Database=test;UID=gus;PWD=TopSecret123!;Encrypt=no;

      The regression is caused by Change-Id: I1df638194067af5df94a34009e1547886fdf928c for QTBUG-122642 which introduces quoting of individual parameters. However, this change does not take into account the fact that the database name parameter may be an ODBC connection string containing multiple parameters delimited by ;. 

       

       

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

            chehrlic Christian Ehrlicher
            mabrand Mark Brand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes