QtSql/ODBC: allow table names with unicode chars
The ODBC driver did not properly decode table names with unicode chars. Fix it by explicitly passing the unicode flag to qGetStringData(). Fixes: QTBUG-82401 Change-Id: Id6eb44cc85ce196ea97d0d6aef1cd573fa033970 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
parent
50d2acdc93
commit
114394702b
@ -2379,7 +2379,7 @@ QStringList QODBCDriver::tables(QSql::TableType type) const
|
||||
}
|
||||
|
||||
while (r == SQL_SUCCESS) {
|
||||
QString fieldVal = qGetStringData(hStmt, 2, -1, false);
|
||||
QString fieldVal = qGetStringData(hStmt, 2, -1, d->unicode);
|
||||
tl.append(fieldVal);
|
||||
|
||||
if (d->hasSQLFetchScroll)
|
||||
|
Loading…
Reference in New Issue
Block a user