gestionale/argento/fullQuery.cpp

11 lines
289 B
C++
Raw Normal View History

2019-08-07 12:12:36 +00:00
#include "fullQuery.h"
2019-08-05 13:32:44 +00:00
QString fullQuery(const QSqlQuery& query) {
QString str = query.lastQuery();
QMapIterator<QString, QVariant> it(query.boundValues());
while (it.hasNext()) {
it.next();
2019-08-06 13:33:11 +00:00
str.replace(it.key(), it.value().toString());
2019-08-05 13:32:44 +00:00
}
return str;
}