mirror of
https://github.com/postgres/postgres.git
synced 2025-05-09 18:21:05 +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:
parent
1cde7fe84a
commit
2ede93de9e
@ -15271,6 +15271,7 @@ CloneRowTriggersToPartition(Relation parent, Relation partition)
|
|||||||
if (trigForm->tgnargs > 0)
|
if (trigForm->tgnargs > 0)
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
|
int i;
|
||||||
|
|
||||||
value = heap_getattr(tuple, Anum_pg_trigger_tgargs,
|
value = heap_getattr(tuple, Anum_pg_trigger_tgargs,
|
||||||
RelationGetDescr(pg_trigger), &isnull);
|
RelationGetDescr(pg_trigger), &isnull);
|
||||||
@ -15280,7 +15281,7 @@ CloneRowTriggersToPartition(Relation parent, Relation partition)
|
|||||||
|
|
||||||
p = (char *) VARDATA_ANY(DatumGetByteaPP(value));
|
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)));
|
trigargs = lappend(trigargs, makeString(pstrdup(p)));
|
||||||
p += strlen(p) + 1;
|
p += strlen(p) + 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user