Skip to content

Commit e3e065d

Browse files
committed
Fix mishandling of CreateEventTrigStmt's eventname field.
It's a string, not a scalar. Petr Jelinek
1 parent 47288bd commit e3e065d

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
@@ -3581,7 +3581,7 @@ _copyCreateEventTrigStmt(const CreateEventTrigStmt *from)
35813581
CreateEventTrigStmt *newnode = makeNode(CreateEventTrigStmt);
35823582

35833583
COPY_STRING_FIELD(trigname);
3584-
COPY_SCALAR_FIELD(eventname);
3584+
COPY_STRING_FIELD(eventname);
35853585
COPY_NODE_FIELD(whenclause);
35863586
COPY_NODE_FIELD(funcname);
35873587

src/backend/nodes/equalfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1790,7 +1790,7 @@ static bool
17901790
_equalCreateEventTrigStmt(const CreateEventTrigStmt *a, const CreateEventTrigStmt *b)
17911791
{
17921792
COMPARE_STRING_FIELD(trigname);
1793-
COMPARE_SCALAR_FIELD(eventname);
1793+
COMPARE_STRING_FIELD(eventname);
17941794
COMPARE_NODE_FIELD(funcname);
17951795
COMPARE_NODE_FIELD(whenclause);
17961796

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