summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii2025-12-24 06:46:54 +0000
committerTatsuo Ishii2025-12-24 07:59:23 +0000
commit9fcc5ba684c1b5c71759d563dd3caabd0caddf6a (patch)
tree896667254054531c2b59ca05629f3ac9f6d87e3d
parent6a013cb86cf92a9231434f7c5c44510033a8dbef (diff)
Fix duplicate NodeTag enum in nodes.h.V4_6_STABLE
The file was imported from PostgreSQL and Pgpool-II specific node type were added right after T_Invalid = 0, then nodetags.h is included. Since nodetags.h explicitly assign values to each enum starting from 1, and this created duplicated enums. T_List = 1, T_Alias = 2, T_RangeVar = 3, T_PgpoolVariableSetStmt, (1) T_PgpoolVariableShowStmt, (2) T_PgpoolQueryCacheStmt, (3) Although fortunately this seems does not create any trouble except the duplicated enums, this should be fixed: moving the inclusion of nodetags.h right after "T_invalid = 0". Reported-by: liujinyang-highgo Diagnosed-by: liujinyang-highgo Discussion: https://github.com/pgpool/pgpool2/issues/138 Backpatch-through: v4.5
-rw-r--r--src/include/parser/nodes.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/include/parser/nodes.h b/src/include/parser/nodes.h
index 1d5bb3ed6..8d878b9ec 100644
--- a/src/include/parser/nodes.h
+++ b/src/include/parser/nodes.h
@@ -30,12 +30,11 @@
typedef enum NodeTag
{
T_Invalid = 0,
-
- /* pgpool Extension */
- T_PgpoolVariableSetStmt,
- T_PgpoolVariableShowStmt,
- T_PgpoolQueryCacheStmt,
#include "nodetags.h"
+ /* pgpool Extension */
+ T_PgpoolVariableSetStmt,
+ T_PgpoolVariableShowStmt,
+ T_PgpoolQueryCacheStmt,
} NodeTag;
/*