Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-66205

ODBC plugin desn't properly show unicode table names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.15.0
    • 5.6.3
    • SQL Support
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              chehrlic Christian Ehrlicher
              buldozer Toni Rutar Lokar
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes