gestionale/fullquery.cpp
2019-08-06 15:33:11 +02:00

11 lines
289 B
C++

#include "fullquery.h"
QString fullQuery(const QSqlQuery& query) {
QString str = query.lastQuery();
QMapIterator<QString, QVariant> it(query.boundValues());
while (it.hasNext()) {
it.next();
str.replace(it.key(), it.value().toString());
}
return str;
}