Commit 763ba1b0 authored by Robert Haas's avatar Robert Haas

Fix mishandling of CreateEventTrigStmt's eventname field.

It's a string, not a scalar.

Petr Jelinek
parent 0926ef43
...@@ -3611,7 +3611,7 @@ _copyCreateEventTrigStmt(const CreateEventTrigStmt *from) ...@@ -3611,7 +3611,7 @@ _copyCreateEventTrigStmt(const CreateEventTrigStmt *from)
CreateEventTrigStmt *newnode = makeNode(CreateEventTrigStmt); CreateEventTrigStmt *newnode = makeNode(CreateEventTrigStmt);
COPY_STRING_FIELD(trigname); COPY_STRING_FIELD(trigname);
COPY_SCALAR_FIELD(eventname); COPY_STRING_FIELD(eventname);
COPY_NODE_FIELD(whenclause); COPY_NODE_FIELD(whenclause);
COPY_NODE_FIELD(funcname); COPY_NODE_FIELD(funcname);
......
...@@ -1806,7 +1806,7 @@ static bool ...@@ -1806,7 +1806,7 @@ static bool
_equalCreateEventTrigStmt(const CreateEventTrigStmt *a, const CreateEventTrigStmt *b) _equalCreateEventTrigStmt(const CreateEventTrigStmt *a, const CreateEventTrigStmt *b)
{ {
COMPARE_STRING_FIELD(trigname); COMPARE_STRING_FIELD(trigname);
COMPARE_SCALAR_FIELD(eventname); COMPARE_STRING_FIELD(eventname);
COMPARE_NODE_FIELD(funcname); COMPARE_NODE_FIELD(funcname);
COMPARE_NODE_FIELD(whenclause); COMPARE_NODE_FIELD(whenclause);
......
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