Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.6.3
-
None
-
Windows 10 x64, Visual Studio 2017
-
114394702b2975b5d890833a5f14510b5e1a2e2b (qt/qtbase/5.15)
Description
ODBC plugin assumes table names to NOT contain unicode characters, which isn't always true (Excel sheets can have unicode names). Using QSqlDatabase::tables on such database connections returns wrong data. A simple fix would be to change
QString fieldVal = qGetStringData(hStmt, 2, -1, false);
to:
QString fieldVal = qGetStringData(hStmt, 2, -1, true);
in qsql_odbc.cpp - inside StringList QODBCDriver::tables(QSql::TableType type) const function. Don't know if it would affect anything else though.
Attachments
Issue Links
- is duplicated by
-
QTBUG-82401 Qt SQL: German umlauts in table names with ODBC for MS-Access
- Closed