| 135 | } |
| 136 | |
| 137 | static 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 | |
| 153 | static bool db_postgres_step(struct db_stmt *stmt) |
| 154 | { |
nothing calls this directly
no test coverage detected