| 215 | } |
| 216 | |
| 217 | static void insert_bookmark(QSqlQuery *stmt, BookmarkItem bi) |
| 218 | { |
| 219 | stmt->finish(); |
| 220 | |
| 221 | stmt->addBindValue(static_cast<int>(bi.nid)); |
| 222 | stmt->addBindValue(bi.text.c_str()); |
| 223 | |
| 224 | if (!stmt->exec()) |
| 225 | { |
| 226 | print("ERROR: could not execute DB statement"); |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | static void insert_nogood(QSqlQuery *stmt, NogoodItem ngi) |
| 231 | { |
no test coverage detected