1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Handle switching API domain

This commit is contained in:
Laurent Cozic
2017-01-11 15:18:56 +01:00
parent ad3c59577e
commit 603d5e1370
17 changed files with 162 additions and 62 deletions

View File

@ -131,13 +131,13 @@ bool Database::commit() {
}
bool Database::execQuery(QSqlQuery &query) {
qDebug().noquote() << "SQL:" << query.lastQuery();
// qDebug().noquote() << "SQL:" << query.lastQuery();
QMapIterator<QString, QVariant> i(query.boundValues());
while (i.hasNext()) {
i.next();
qDebug().noquote() << "SQL:" << i.key() << "=" << i.value().toString();
}
// QMapIterator<QString, QVariant> i(query.boundValues());
// while (i.hasNext()) {
// i.next();
// qDebug().noquote() << "SQL:" << i.key() << "=" << i.value().toString();
// }
return query.exec();
}