Skip to content

Commit 4d7ce5d

Browse files
committed
check type of 'rows' in bgw_main_concurrent_part()
1 parent 6b00d81 commit 4d7ce5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/pathman_workers.c

+1
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ bgw_main_concurrent_part(Datum main_arg)
569569

570570
/* Extract number of processed rows */
571571
rows = DatumGetInt64(SPI_getbinval(tuple, tupdesc, 1, &isnull));
572+
Assert(tupdesc->attrs[0]->atttypid == INT8OID); /* check type */
572573
Assert(!isnull); /* ... and ofc it must not be NULL */
573574
}
574575
/* Else raise generic error */

0 commit comments

Comments
 (0)