| 158 | } |
| 159 | |
| 160 | bool db_step(struct db_stmt *stmt) |
| 161 | { |
| 162 | bool ret; |
| 163 | |
| 164 | assert(stmt->executed); |
| 165 | ret = stmt->db->config->step_fn(stmt); |
| 166 | |
| 167 | /* We only track cols_used if we return a result! */ |
| 168 | if (stmt->db->developer && ret && !stmt->cols_used) { |
| 169 | stmt->cols_used = tal(stmt, struct strset); |
| 170 | strset_init(stmt->cols_used); |
| 171 | } |
| 172 | |
| 173 | return ret; |
| 174 | } |
| 175 | |
| 176 | void db_exec_prepared_v2(struct db_stmt *stmt TAKES) |
| 177 | { |