Statements a search ran with the name-range predicate (SQLITE_TRACE_STMT). */
| 961 | |
| 962 | /* Statements a search ran with the name-range predicate (SQLITE_TRACE_STMT). */ |
| 963 | static int anchored_trace_cb(unsigned type, void *ctx, void *stmt, void *sql) { |
| 964 | (void)stmt; |
| 965 | if (type == SQLITE_TRACE_STMT && sql && strstr((const char *)sql, "n.name >= ?")) { |
| 966 | (*(int *)ctx)++; |
| 967 | } |
| 968 | return 0; |
| 969 | } |
| 970 | |
| 971 | /* "name#label;" per row plus the total, for comparing two searches. */ |
| 972 | static void anchored_search_rows(cbm_store_t *s, const cbm_search_params_t *p, int *rc, |
nothing calls this directly
no outgoing calls
no test coverage detected