Skip to content

Commit e35db34

Browse files
committed
Fix mishandling of CreateEventTrigStmt's eventname field.
It's a string, not a scalar. Petr Jelinek
1 parent 9474c9d commit e35db34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/nodes/copyfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3507,7 +3507,7 @@ _copyCreateEventTrigStmt(const CreateEventTrigStmt *from)
35073507
CreateEventTrigStmt *newnode = makeNode(CreateEventTrigStmt);
35083508

35093509
COPY_STRING_FIELD(trigname);
3510-
COPY_SCALAR_FIELD(eventname);
3510+
COPY_STRING_FIELD(eventname);
35113511
COPY_NODE_FIELD(whenclause);
35123512
COPY_NODE_FIELD(funcname);
35133513

src/backend/nodes/equalfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@ static bool
17501750
_equalCreateEventTrigStmt(const CreateEventTrigStmt *a, const CreateEventTrigStmt *b)
17511751
{
17521752
COMPARE_STRING_FIELD(trigname);
1753-
COMPARE_SCALAR_FIELD(eventname);
1753+
COMPARE_STRING_FIELD(eventname);
17541754
COMPARE_NODE_FIELD(funcname);
17551755
COMPARE_NODE_FIELD(whenclause);
17561756

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy