Skip to content

Commit

Permalink
ibase: Don't use deprecated QSqlError constructor
Browse files Browse the repository at this point in the history
Task-number: QTBUG-68330
Change-Id: Ie6ece8574462699fca401139ea00f1925b0a440b
Reviewed-by: Simon Hausmann <[email protected]>
  • Loading branch information
AndyShawQt committed May 18, 2018
1 parent 1af15a5 commit 8d19afc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/sqldrivers/ibase/qsql_ibase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ class QIBaseDriverPrivate : public QSqlDriverPrivate
return false;

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

Expand Down

0 comments on commit 8d19afc

Please sign in to comment.