1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-06 19:59:18 +03:00

Fix compile failure

REL_11_STABLE's configure does not select C99 mode by default, so using
C99 block initializer broke the build for some compilers.  Revert to C89
in that branch.

Author: Michaël Paquier
Discussion: https://postgr.es/m/20190710070122.GE1031@paquier.xyz
This commit is contained in:
Alvaro Herrera 2019-07-10 09:01:28 -04:00
parent 1cde7fe84a
commit 2ede93de9e

View File

@ -15271,6 +15271,7 @@ CloneRowTriggersToPartition(Relation parent, Relation partition)
if (trigForm->tgnargs > 0)
{
char *p;
int i;
value = heap_getattr(tuple, Anum_pg_trigger_tgargs,
RelationGetDescr(pg_trigger), &isnull);
@ -15280,7 +15281,7 @@ CloneRowTriggersToPartition(Relation parent, Relation partition)
p = (char *) VARDATA_ANY(DatumGetByteaPP(value));
for (int i = 0; i < trigForm->tgnargs; i++)
for (i = 0; i < trigForm->tgnargs; i++)
{
trigargs = lappend(trigargs, makeString(pstrdup(p)));
p += strlen(p) + 1;