Skip to content

Commit

Permalink
Don't compare int to uint
Browse files Browse the repository at this point in the history
  • Loading branch information
konskov committed Nov 2, 2022
1 parent 8842e66 commit 970eb3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/telemetry/telemetry.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ add_errors_by_sqlerrcode_internal(JsonbParseState *parse_state, const char *job_
while ((type = JsonbIteratorNext(&it, &val, true)))
{
const char *errcode;
// JsonbValue errcode;
int64 errcnt;

if (type == WJB_END_OBJECT)
break;
else if (type == WJB_KEY)
Expand Down Expand Up @@ -373,7 +373,7 @@ add_errors_by_sqlerrcode(JsonbParseState *parse_state)
(errmsg("could not get errors by sqlerrcode and job type"))));

/* we expect about 6 rows returned, each row is a record (TEXT, JSONB) */
for (int i = 0; i < SPI_processed; i++)
for (uint64_t i = 0; i < SPI_processed; i++)
{
// jobtype is text
Datum record_jobtype, record_jsonb;
Expand Down Expand Up @@ -473,7 +473,7 @@ add_job_stats_by_job_type(JsonbParseState *parse_state)
/* a row returned looks like this:
("policy_telemetry", 12, 10, 1, 1, 00:00:11, 1, 1)
*/
for (int i = 0; i < SPI_processed; i++)
for (uint64_t i = 0; i < SPI_processed; i++)
{
tuptable = SPI_tuptable;
TupleDesc tupdesc = tuptable->tupdesc;
Expand Down

0 comments on commit 970eb3b

Please sign in to comment.