ibase: Don't use deprecated QSqlError constructor

Task-number: QTBUG-68330
Change-Id: Ie6ece8574462699fca401139ea00f1925b0a440b
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Andy Shaw 2018-05-18 13:52:29 +02:00
parent 1af15a5659
commit 8d19afcc81

View File

@ -323,7 +323,8 @@ public:
return false;
q->setLastError(QSqlError(QCoreApplication::translate("QIBaseDriver", msg),
imsg, typ, int(sqlcode)));
imsg, typ,
sqlcode != -1 ? QString::number(sqlcode) : QString()));
return true;
}