The error of an execution execute_single aborted: a failed start-node scan * names the store's error, anything else was an allocation. */
| 6518 | /* The error of an execution execute_single aborted: a failed start-node scan |
| 6519 | * names the store's error, anything else was an allocation. */ |
| 6520 | static char *cypher_abort_error(void) { |
| 6521 | if (g_cypher_scan_error[0]) { |
| 6522 | char buf[CBM_SZ_1K]; |
| 6523 | snprintf(buf, sizeof(buf), "query aborted: reading the graph failed (%s)", |
| 6524 | g_cypher_scan_error); |
| 6525 | return heap_strdup(buf); |
| 6526 | } |
| 6527 | return heap_strdup("query aborted: out of memory or an allocation limit was reached"); |
| 6528 | } |
| 6529 | |
| 6530 | int cbm_cypher_execute(cbm_store_t *store, const char *query, const char *project, int max_rows, |
| 6531 | cbm_cypher_result_t *out) { |
no test coverage detected