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
For Gerrit Dashboard: QTBUG-123444 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
552204,3 | SQL/ODBC: don't escape a driver string | dev | qt/qtbase | Status: MERGED | +2 | 0 |
553133,2 | SQL/ODBC: don't escape a driver string | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |