diff options
author | Bill King <bill.king@nokia.com> | 2010-03-04 06:35:07 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2010-03-04 06:35:07 (GMT) |
commit | e3fb16c08a0b219703c6d3ca47d0c62bafdd013c (patch) | |
tree | 75c48aa291ff03743ab08228e11727a2bee5b3df /demos | |
parent | 60a0a4bb680d9f3780cadd25b834492171ef7d38 (diff) | |
download | Qt-e3fb16c08a0b219703c6d3ca47d0c62bafdd013c.zip Qt-e3fb16c08a0b219703c6d3ca47d0c62bafdd013c.tar.gz Qt-e3fb16c08a0b219703c6d3ca47d0c62bafdd013c.tar.bz2 |
SqlBrowser not respecting casings.
A previous fix broke assumed behaviour. Make it do the correct thing,
ie we know the casing, so quote it to tell the system leave it be.
Task-number: QTBUG-4001
Diffstat (limited to 'demos')
-rw-r--r-- | demos/sqlbrowser/browser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/sqlbrowser/browser.cpp b/demos/sqlbrowser/browser.cpp index 6aed73a..1232428 100644 --- a/demos/sqlbrowser/browser.cpp +++ b/demos/sqlbrowser/browser.cpp @@ -146,7 +146,7 @@ void Browser::showTable(const QString &t) { QSqlTableModel *model = new QSqlTableModel(table, connectionWidget->currentDatabase()); model->setEditStrategy(QSqlTableModel::OnRowChange); - model->setTable(t); + model->setTable(connectionWidget->currentDatabase().driver()->escapeIdentifier(t, QSqlDriver::TableName)); model->select(); if (model->lastError().type() != QSqlError::NoError) emit statusMessage(model->lastError().text()); |