Content-Length: 282800 | pFad | http://github.com/postgrespro/postgres/commit/763ba1b0f2aa8353e3e3b02bc6bd965deb4575e0

19 Fix mishandling of CreateEventTrigStmt's eventname field. · postgrespro/postgres@763ba1b · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/763ba1b0f2aa8353e3e3b02bc6bd965deb4575e0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy