summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers/odbc
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2024-04-01 19:06:34 +0200
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2024-04-04 23:43:02 +0200
commit9873f4b283dcabefc20b1720bef1958c2b1ccc02 (patch)
tree340cf81e45ef9b3cba57e532d0f635592b44d6ce /src/plugins/sqldrivers/odbc
parent5a03e5c51b4e5f699d4bf4cf10226758a10e8120 (diff)
SQL/ODBC: don't escape a driver string
We must not try to escape a driver string, the user has to make sure that everything is correctly escaped when passing a complete driver string. This fixes a regression from QTBUG-122642. Pick-to: 6.7 Fixes: QTBUG-123444 Change-Id: I43316c7a09060f5c8117fdc3c464d239e37d9cdf Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Diffstat (limited to 'src/plugins/sqldrivers/odbc')
-rw-r--r--src/plugins/sqldrivers/odbc/qsql_odbc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/sqldrivers/odbc/qsql_odbc.cpp b/src/plugins/sqldrivers/odbc/qsql_odbc.cpp
index ba8bb0bef0..db65f9f8c2 100644
--- a/src/plugins/sqldrivers/odbc/qsql_odbc.cpp
+++ b/src/plugins/sqldrivers/odbc/qsql_odbc.cpp
@@ -1971,7 +1971,7 @@ bool QODBCDriver::open(const QString & db,
connQStr = "FILEDSN="_L1 + ensureEscaped(db);
else if (db.contains("DRIVER="_L1, Qt::CaseInsensitive)
|| db.contains("SERVER="_L1, Qt::CaseInsensitive))
- connQStr = ensureEscaped(db);
+ connQStr = db;
else
connQStr = "DSN="_L1 + ensureEscaped(db);