We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenta1e5705 commit0635c0bCopy full SHA for 0635c0b
src/pl/plpgsql/src/pl_handler.c
@@ -280,6 +280,8 @@ plpgsql_validator(PG_FUNCTION_ARGS)
280
FunctionCallInfoDatafake_fcinfo;
281
FmgrInfoflinfo;
282
intrc;
283
+TriggerDatatrigdata;
284
+EventTriggerDataetrigdata;
285
286
/*
287
* Connect to SPI manager (is this needed for compilation?)
@@ -298,17 +300,15 @@ plpgsql_validator(PG_FUNCTION_ARGS)
298
300
flinfo.fn_mcxt=CurrentMemoryContext;
299
301
if (is_dml_trigger)
302
{
-TriggerDatatrigdata;
303
MemSet(&trigdata,0,sizeof(trigdata));
304
trigdata.type=T_TriggerData;
305
fake_fcinfo.context= (Node*)&trigdata;
306
}
307
elseif (is_event_trigger)
308
-EventTriggerDatatrigdata;
309
-MemSet(&trigdata,0,sizeof(trigdata));
310
-trigdata.type=T_EventTriggerData;
311
-fake_fcinfo.context= (Node*)&trigdata;
+MemSet(&etrigdata,0,sizeof(etrigdata));
+etrigdata.type=T_EventTriggerData;
+fake_fcinfo.context= (Node*)&etrigdata;
312
313
314
/* Test-compile the function */