]> granicus.if.org Git - postgresql/commitdiff
Fix mishandling of CreateEventTrigStmt's eventname field.
authorRobert Haas <rhaas@postgresql.org>
Mon, 22 Sep 2014 20:05:51 +0000 (16:05 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 22 Sep 2014 20:19:11 +0000 (16:19 -0400)
It's a string, not a scalar.

Petr Jelinek

src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c

index 221d0fee6bbd689f7c61d0f2bec5bb6e180a6c6e..04311dccfe529d09fb977d3c37facf3ffd888d76 100644 (file)
@@ -3581,7 +3581,7 @@ _copyCreateEventTrigStmt(const CreateEventTrigStmt *from)
        CreateEventTrigStmt *newnode = makeNode(CreateEventTrigStmt);
 
        COPY_STRING_FIELD(trigname);
-       COPY_SCALAR_FIELD(eventname);
+       COPY_STRING_FIELD(eventname);
        COPY_NODE_FIELD(whenclause);
        COPY_NODE_FIELD(funcname);
 
index 7e53681e70654668c13c287a3ff7e6bcb76561d0..d48f7f66014bb8c9b652eabc1ee79ae5fdf77467 100644 (file)
@@ -1790,7 +1790,7 @@ static bool
 _equalCreateEventTrigStmt(const CreateEventTrigStmt *a, const CreateEventTrigStmt *b)
 {
        COMPARE_STRING_FIELD(trigname);
-       COMPARE_SCALAR_FIELD(eventname);
+       COMPARE_STRING_FIELD(eventname);
        COMPARE_NODE_FIELD(funcname);
        COMPARE_NODE_FIELD(whenclause);