Commit 41f17e67 authored by Tom Lane's avatar Tom Lane

Another FUNC_MAX_ARGS tweak.

parent ac295f43
...@@ -41,7 +41,7 @@ void ...@@ -41,7 +41,7 @@ void
CreateTrigger(CreateTrigStmt *stmt) CreateTrigger(CreateTrigStmt *stmt)
{ {
int16 tgtype; int16 tgtype;
int16 tgattr[FUNC_MAX_ARGS] = {0}; int16 tgattr[FUNC_MAX_ARGS];
Datum values[Natts_pg_trigger]; Datum values[Natts_pg_trigger];
char nulls[Natts_pg_trigger]; char nulls[Natts_pg_trigger];
Relation rel; Relation rel;
...@@ -228,6 +228,7 @@ CreateTrigger(CreateTrigStmt *stmt) ...@@ -228,6 +228,7 @@ CreateTrigger(CreateTrigStmt *stmt)
values[Anum_pg_trigger_tgnargs - 1] = Int16GetDatum(0); values[Anum_pg_trigger_tgnargs - 1] = Int16GetDatum(0);
values[Anum_pg_trigger_tgargs - 1] = PointerGetDatum(byteain("")); values[Anum_pg_trigger_tgargs - 1] = PointerGetDatum(byteain(""));
} }
MemSet(tgattr, 0, FUNC_MAX_ARGS * sizeof(int16));
values[Anum_pg_trigger_tgattr - 1] = PointerGetDatum(tgattr); values[Anum_pg_trigger_tgattr - 1] = PointerGetDatum(tgattr);
tuple = heap_formtuple(tgrel->rd_att, values, nulls); tuple = heap_formtuple(tgrel->rd_att, values, nulls);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment