Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.2, 5.11.1
-
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
- relates to
-
QTBUG-66379 QSqlTableModel can't update existing record
- Closed
For Gerrit Dashboard: QTBUG-9399 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
172188,1 | Escape table names in generated SQL statements | dev | qt/qtbase | Status: ABANDONED | +1 | 0 |