| 148 | } |
| 149 | |
| 150 | bool db_step(struct db_stmt *stmt) |
| 151 | { |
| 152 | bool ret; |
| 153 | |
| 154 | assert(stmt->executed); |
| 155 | ret = stmt->db->config->step_fn(stmt); |
| 156 | |
| 157 | #if DEVELOPER |
| 158 | /* We only track cols_used if we return a result! */ |
| 159 | if (ret && !stmt->cols_used) { |
| 160 | stmt->cols_used = tal(stmt, struct strset); |
| 161 | strset_init(stmt->cols_used); |
| 162 | } |
| 163 | #endif |
| 164 | return ret; |
| 165 | } |
| 166 | |
| 167 | bool db_exec_prepared_v2(struct db_stmt *stmt TAKES) |
| 168 | { |