Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.9.7, 5.12.2
-
None
-
Debian 9 (stretch) amd64
Windows 10 amd64
Qt from Online Installer
-
-
b58c723404594d04f0b31b425da77b4fcbeec3b9 (qt/qtbase/dev)
Description
Try this example application:
#include <QDebug> #include <QSqlDatabase> #include <QSqlError> #include <QSqlQuery> #include <QString> int main() { QSqlDatabase db{QSqlDatabase::addDatabase(QStringLiteral("QSQLITE"))}; db.setDatabaseName(QStringLiteral(":memory:")); if (!db.open()) qFatal("%s", qPrintable(db.lastError().text())); QSqlQuery q{db}; q.exec(QStringLiteral("SELECT 1")); const QString error{q.lastError().text()}; qDebug() << error; }
It prints:
" "
Attachments
For Gerrit Dashboard: QTBUG-74575 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
256694,2 | QSqlError: fix redundant space in text() output | dev | qt/qtbase | Status: MERGED | +2 | 0 |