mirror of
https://github.com/WCBROW01/zblock.git
synced 2025-12-12 04:28:07 -05:00
[feed_info.c] Finish up our database query
This commit is contained in:
@ -81,9 +81,12 @@ zblock_feed_info_err zblock_feed_info_retrieve_list_item(PGconn *conn, zblock_fe
|
|||||||
if (PQresultStatus(res) != PGRES_TUPLES_OK) {
|
if (PQresultStatus(res) != PGRES_TUPLES_OK) {
|
||||||
log_error("Unable to retrieve feeds: %s", PQresultErrorMessage(res));
|
log_error("Unable to retrieve feeds: %s", PQresultErrorMessage(res));
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
|
PQgetResult(conn);
|
||||||
return ZBLOCK_FEED_INFO_DBERROR;
|
return ZBLOCK_FEED_INFO_DBERROR;
|
||||||
} else {
|
} else {
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
|
// we need to do this one last time or the next query won't work
|
||||||
|
PQgetResult(conn);
|
||||||
return ZBLOCK_FEED_INFO_FINISHED;
|
return ZBLOCK_FEED_INFO_FINISHED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user