| 60 | |
| 61 | |
| 62 | QString getLastExecutedQuery(const QSqlQuery& query) |
| 63 | { |
| 64 | QString str = query.lastQuery(); |
| 65 | QMapIterator<QString, QVariant> it(query.boundValues()); |
| 66 | while (it.hasNext()) |
| 67 | { |
| 68 | it.next(); |
| 69 | str.replace(it.key(),it.value().toString()); |
| 70 | } |
| 71 | return str; |
| 72 | } |
| 73 | |
| 74 | |
| 75 | // Generic exec(). A prepare should have been done already |