Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7.0 RC, 6.7.0, 6.7
-
None
-
-
9873f4b28 (dev), 8f25cdc94 (6.7)
Description
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 ;.
Attachments
Issue Links
- is duplicated by
-
PYSIDE-2744 The script terminates unexpectedly with exit code 3221225477 upon attempting to import QSqlDatabase.
- Closed
- resulted from
-
QTBUG-122642 The SQL QODBC driver implementation fails to escape passwords set with setPassword(...) when using special characters.
- Closed