Destruction is unconditional, including after the scope has been poisoned. */
| 206 | |
| 207 | /* Destruction is unconditional, including after the scope has been poisoned. */ |
| 208 | static bool gd_finalize(gd_context_t *g) { |
| 209 | if (g->stmt) { |
| 210 | (void)gd_check(g); |
| 211 | sqlite3_stmt *stmt = g->stmt; |
| 212 | g->stmt = NULL; |
| 213 | int rc = sqlite3_finalize(stmt); |
| 214 | if (rc != SQLITE_OK) { |
| 215 | gd_sql_failure(g, rc); |
| 216 | } |
| 217 | (void)gd_check(g); |
| 218 | } |
| 219 | return g->status == CBM_STORE_GRAPH_DIGEST_OK; |
| 220 | } |
| 221 | |
| 222 | static bool gd_bind_name(gd_context_t *g, const char *name) { |
| 223 | int rc = sqlite3_bind_text(g->stmt, 1, name, -1, SQLITE_STATIC); |
no test coverage detected