aboutsummaryrefslogtreecommitdiff
path: root/src/Database/reportquery.cpp
blob: 2a5d7f7f5c21816ef31fe7eb72fb487480ff8200 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "databaseinterface.h"

bool reportQuery(const QSqlQuery &q)
{
    logPrimitive() << "Database query error." << endl << "" << endl
                   << "Technical info: " << q.lastQuery() << endl << "" << endl
                   << "Reported error: " <<  q.lastError().text() << endl;

    // always return false, so we can report error and return false in one line.
    return false;
}