mirror of
https://github.com/WCBROW01/zblock.git
synced 2025-12-11 20:18:07 -05:00
Fix zblock_feed_info_exists()
Returned row count value is actually a bigint.
This commit is contained in:
@ -58,7 +58,7 @@ zblock_feed_info_err zblock_feed_info_exists(PGconn *conn, const char *url, u64s
|
|||||||
return ZBLOCK_FEED_INFO_DBERROR;
|
return ZBLOCK_FEED_INFO_DBERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
*exists = be32toh(*(uint32_t *) PQgetvalue(res, 0, 0));
|
*exists = be64toh(*(uint64_t *) PQgetvalue(res, 0, 0));
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
return ZBLOCK_FEED_INFO_OK;
|
return ZBLOCK_FEED_INFO_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user