mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-03 06:27:18 +02:00
Fix mishandling of CreateEventTrigStmt's eventname field.
It's a string, not a scalar. Petr Jelinek
This commit is contained in:
parent
47288bd08c
commit
e3e065d377
@ -3581,7 +3581,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);
|
||||||
|
|
||||||
|
@ -1790,7 +1790,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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user