Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 443c08a commit 33773afCopy full SHA for 33773af
src/backend/commands/trigger.c
@@ -138,10 +138,12 @@ CreateTrigger(CreateTrigStmt *stmt)
138
PointerGetDatum(fargtypes),
139
0);
140
if (!HeapTupleIsValid(tuple) ||
141
- ((Form_pg_proc) GETSTRUCT(tuple))->prorettype != 0 ||
142
((Form_pg_proc) GETSTRUCT(tuple))->pronargs != 0)
143
- elog(ERROR, "CreateTrigger: function %s () does not exist", stmt->funcname);
144
-
+ elog(ERROR, "CreateTrigger: function %s() does not exist",
+ stmt->funcname);
+ if (((Form_pg_proc) GETSTRUCT(tuple))->prorettype != 0)
145
+ elog(ERROR, "CreateTrigger: function %s() must return OPAQUE",
146
147
if (((Form_pg_proc) GETSTRUCT(tuple))->prolang != ClanguageId)
148
{
149
HeapTuple langTup;
0 commit comments