SQL/ODBC: add another check to detect unicode availability in driver
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sat, 13 Jan 2024 16:53:52 +0000 (19:53 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 13 Jan 2024 16:53:52 +0000 (19:53 +0300)
commitf30405b10f72426532f8f3d15e7848d258670125
tree9469583228f3b8fccbb536b88e06c684ea7a138b
parent669abd2f24ca4d81955b380ff756e6f2430a9a13
SQL/ODBC: add another check to detect unicode availability in driver

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=f19320748d282b1e
Last-Update: 2023-06-30

Since ODBC does not have a direct way finding out if unicode is
supported by the underlying driver the ODBC plugin does some checks. As
a last resort a sql statement is executed which returns a string. But
even this may fail because the select statement has no FROM part which
is rejected by at least Oracle does not allow. Therefore add another
query which is correct for Oracle & DB2 as a workaround. The question
why the first three statements to check for unicode availability fail
is still open but can't be checked since I've no access to an oracle
database.

Gbp-Pq: Name sql_odbc_more_unicode_checks.diff
src/plugins/sqldrivers/odbc/qsql_odbc.cpp