Fix database storage bug in ErrorLogModel
This commit is contained in:
parent
0c13326ab1
commit
eab5d08acd
@ -66,7 +66,7 @@ void ErrorLogModel::monitorErrorMessages(const QString &url, const QString &id,
|
|||||||
|
|
||||||
// Also add error to database
|
// Also add error to database
|
||||||
QSqlQuery query;
|
QSqlQuery query;
|
||||||
query.prepare(QStringLiteral("INSERT INTO Errors VALUES (:url, :id, :code, :string, :date);"));
|
query.prepare(QStringLiteral("INSERT INTO Errors VALUES (:url, :id, :code, :message, :date);"));
|
||||||
query.bindValue(QStringLiteral(":url"), error->url);
|
query.bindValue(QStringLiteral(":url"), error->url);
|
||||||
query.bindValue(QStringLiteral(":id"), error->id);
|
query.bindValue(QStringLiteral(":id"), error->id);
|
||||||
query.bindValue(QStringLiteral(":code"), error->code);
|
query.bindValue(QStringLiteral(":code"), error->code);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user