Skip to content

Commit 763ba1b

Browse files
committed
Fix mishandling of CreateEventTrigStmt's eventname field.
It's a string, not a scalar. Petr Jelinek
1 parent 0926ef4 commit 763ba1b

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
@@ -3611,7 +3611,7 @@ _copyCreateEventTrigStmt(const CreateEventTrigStmt *from)
36113611
CreateEventTrigStmt *newnode = makeNode(CreateEventTrigStmt);
36123612

36133613
COPY_STRING_FIELD(trigname);
3614-
COPY_SCALAR_FIELD(eventname);
3614+
COPY_STRING_FIELD(eventname);
36153615
COPY_NODE_FIELD(whenclause);
36163616
COPY_NODE_FIELD(funcname);
36173617

src/backend/nodes/equalfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ static bool
18061806
_equalCreateEventTrigStmt(const CreateEventTrigStmt *a, const CreateEventTrigStmt *b)
18071807
{
18081808
COMPARE_STRING_FIELD(trigname);
1809-
COMPARE_SCALAR_FIELD(eventname);
1809+
COMPARE_STRING_FIELD(eventname);
18101810
COMPARE_NODE_FIELD(funcname);
18111811
COMPARE_NODE_FIELD(whenclause);
18121812

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