MCPcopy Create free account
hub / github.com/ElementsProject/lightning / db_postgres_query

Function db_postgres_query

db/db_postgres.c:137–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137static bool db_postgres_query(struct db_stmt *stmt)
138{
139 stmt->inner_stmt = db_postgres_do_exec(stmt);
140 int res;
141 res = PQresultStatus(stmt->inner_stmt);
142
143 if (res != PGRES_EMPTY_QUERY && res != PGRES_TUPLES_OK) {
144 stmt->error = PQerrorMessage(stmt->db->conn);
145 PQclear(stmt->inner_stmt);
146 stmt->inner_stmt = NULL;
147 return false;
148 }
149 stmt->row = -1;
150 return true;
151}
152
153static bool db_postgres_step(struct db_stmt *stmt)
154{

Callers

nothing calls this directly

Calls 1

db_postgres_do_execFunction · 0.85

Tested by

no test coverage detected