| 194 | } |
| 195 | |
| 196 | static int gd_step(gd_context_t *g) { |
| 197 | if (!gd_check(g)) { |
| 198 | return SQLITE_ERROR; |
| 199 | } |
| 200 | int rc = sqlite3_step(g->stmt); |
| 201 | if (rc != SQLITE_ROW && rc != SQLITE_DONE) { |
| 202 | gd_sql_failure(g, rc); |
| 203 | } |
| 204 | return gd_check(g) ? rc : SQLITE_ERROR; |
| 205 | } |
| 206 | |
| 207 | /* Destruction is unconditional, including after the scope has been poisoned. */ |
| 208 | static bool gd_finalize(gd_context_t *g) { |
no test coverage detected