| 36 | namespace |
| 37 | { |
| 38 | bool prepQuery(QSqlQuery &qr,const QString &txt) |
| 39 | { |
| 40 | if(!qr.prepare(txt)) |
| 41 | { |
| 42 | qDebug() << "SQL_ERROR:" << qr.lastError(); |
| 43 | qDebug() << "QUERY:" << qr.executedQuery(); |
| 44 | return false; |
| 45 | } |
| 46 | return true; |
| 47 | } |
| 48 | bool doIt(QSqlQuery &qr) |
| 49 | { |
| 50 | if(!qr.exec()) |
no test coverage detected