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

QSqlDriver::sqlStatement does not escape table name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.13.0
    • 4.6.2, 5.11.1
    • SQL Support
    • None
    • Windows XP Pro 64 bit (with Qt in 32 bits mode and using MinGW as the compiler)
    • 461ef575bcf778ba24b0be6b775098d4b80ae5e1

    Description

      QSqlDriver::sqlStatement can be used to construct SQL statements that use the proper SQL dialect for the current database. However, if the table name contains whitespace, this function does not return a properly escaped table name. Just like the field names, table names need to be escaped. Currently, this function returns incorrect SQL.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-9399
          # Subject Branch Project Status CR V

          Activity

            People

              andysh Andy Shaw
              andre André Somers
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes