| 228 | } |
| 229 | |
| 230 | static void insert_nogood(QSqlQuery *stmt, NogoodItem ngi) |
| 231 | { |
| 232 | |
| 233 | stmt->finish(); |
| 234 | |
| 235 | stmt->addBindValue(static_cast<int>(ngi.nid)); |
| 236 | stmt->addBindValue(ngi.text.c_str()); |
| 237 | |
| 238 | if (!stmt->exec()) |
| 239 | { |
| 240 | print("ERROR: could not execute DB statement"); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | static void save_nogoods(QSqlDatabase *db, const Execution *ex) |
| 245 | { |