11 lines
289 B
C++
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;
|
||
|
}
|