The current phase has no rows left. The NULL file_path rows hand over to * the files, the rest of a file to the files after it; a label's rows and * the files after the last one end the scan. */
| 3505 | * the files, the rest of a file to the files after it; a label's rows and |
| 3506 | * the files after the last one end the scan. */ |
| 3507 | static void node_scan_phase_done(cbm_store_node_scan_t *scan) { |
| 3508 | if (scan->phase == NODE_SCAN_NULL_FILE) { |
| 3509 | scan->keyed = false; |
| 3510 | scan->phase = NODE_SCAN_FILE_AFTER; |
| 3511 | } else if (scan->phase == NODE_SCAN_FILE_SAME) { |
| 3512 | scan->phase = NODE_SCAN_FILE_AFTER; /* after last_file */ |
| 3513 | } else { |
| 3514 | scan->done = true; |
| 3515 | } |
| 3516 | } |
| 3517 | |
| 3518 | static void node_scan_bind(cbm_store_node_scan_t *scan, sqlite3_stmt *stmt, node_scan_stmt_t which, |
| 3519 | int max) { |