1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-21 15:54:08 +03:00

Avoid C99-ism in pre-v12 branches.

Per buildfarm (I need to figure out why my own compiler did not
whine about this).
This commit is contained in:
Tom Lane 2020-07-21 13:13:15 -04:00
parent fb71329ad6
commit a00dbfaeed

View File

@ -186,8 +186,9 @@ CatalogTupleCheckConstraints(Relation heapRel, HeapTuple tup)
{ {
TupleDesc tupdesc = RelationGetDescr(heapRel); TupleDesc tupdesc = RelationGetDescr(heapRel);
bits8 *bp = tup->t_data->t_bits; bits8 *bp = tup->t_data->t_bits;
int attnum;
for (int attnum = 0; attnum < tupdesc->natts; attnum++) for (attnum = 0; attnum < tupdesc->natts; attnum++)
{ {
Form_pg_attribute thisatt = TupleDescAttr(tupdesc, attnum); Form_pg_attribute thisatt = TupleDescAttr(tupdesc, attnum);