mirror of
https://github.com/postgres/postgres.git
synced 2026-02-22 01:11:05 -05:00
Fix mishandling of CreateEventTrigStmt's eventname field.
It's a string, not a scalar. Petr Jelinek
This commit is contained in:
parent
9474c9d810
commit
e35db342aa
2 changed files with 2 additions and 2 deletions
|
|
@ -3507,7 +3507,7 @@ _copyCreateEventTrigStmt(const CreateEventTrigStmt *from)
|
|||
CreateEventTrigStmt *newnode = makeNode(CreateEventTrigStmt);
|
||||
|
||||
COPY_STRING_FIELD(trigname);
|
||||
COPY_SCALAR_FIELD(eventname);
|
||||
COPY_STRING_FIELD(eventname);
|
||||
COPY_NODE_FIELD(whenclause);
|
||||
COPY_NODE_FIELD(funcname);
|
||||
|
||||
|
|
|
|||
|
|
@ -1750,7 +1750,7 @@ static bool
|
|||
_equalCreateEventTrigStmt(const CreateEventTrigStmt *a, const CreateEventTrigStmt *b)
|
||||
{
|
||||
COMPARE_STRING_FIELD(trigname);
|
||||
COMPARE_SCALAR_FIELD(eventname);
|
||||
COMPARE_STRING_FIELD(eventname);
|
||||
COMPARE_NODE_FIELD(funcname);
|
||||
COMPARE_NODE_FIELD(whenclause);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue