MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cypher_abort_error

Function cypher_abort_error

src/cypher/cypher.c:6520–6528  ·  view source on GitHub ↗

The error of an execution execute_single aborted: a failed start-node scan * names the store's error, anything else was an allocation. */

Source from the content-addressed store, hash-verified

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. */
6520static 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
6530int cbm_cypher_execute(cbm_store_t *store, const char *query, const char *project, int max_rows,
6531 cbm_cypher_result_t *out) {

Callers 1

cbm_cypher_executeFunction · 0.85

Calls 1

heap_strdupFunction · 0.70

Tested by

no test coverage detected