aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/nodes/copyfuncs.c6
-rw-r--r--src/backend/nodes/equalfuncs.c4
-rw-r--r--src/backend/nodes/outfuncs.c5
-rw-r--r--src/backend/nodes/readfuncs.c4
4 files changed, 10 insertions, 9 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c
index 491452ae2d4..d8cf87e6d08 100644
--- a/src/backend/nodes/copyfuncs.c
+++ b/src/backend/nodes/copyfuncs.c
@@ -101,7 +101,7 @@ _copyPlannedStmt(const PlannedStmt *from)
COPY_NODE_FIELD(paramExecTypes);
COPY_NODE_FIELD(utilityStmt);
COPY_LOCATION_FIELD(stmt_location);
- COPY_LOCATION_FIELD(stmt_len);
+ COPY_SCALAR_FIELD(stmt_len);
return newnode;
}
@@ -3090,7 +3090,7 @@ _copyQuery(const Query *from)
COPY_NODE_FIELD(constraintDeps);
COPY_NODE_FIELD(withCheckOptions);
COPY_LOCATION_FIELD(stmt_location);
- COPY_LOCATION_FIELD(stmt_len);
+ COPY_SCALAR_FIELD(stmt_len);
return newnode;
}
@@ -3102,7 +3102,7 @@ _copyRawStmt(const RawStmt *from)
COPY_NODE_FIELD(stmt);
COPY_LOCATION_FIELD(stmt_location);
- COPY_LOCATION_FIELD(stmt_len);
+ COPY_SCALAR_FIELD(stmt_len);
return newnode;
}
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c
index 8408c28ec69..627b026b195 100644
--- a/src/backend/nodes/equalfuncs.c
+++ b/src/backend/nodes/equalfuncs.c
@@ -987,7 +987,7 @@ _equalQuery(const Query *a, const Query *b)
COMPARE_NODE_FIELD(constraintDeps);
COMPARE_NODE_FIELD(withCheckOptions);
COMPARE_LOCATION_FIELD(stmt_location);
- COMPARE_LOCATION_FIELD(stmt_len);
+ COMPARE_SCALAR_FIELD(stmt_len);
return true;
}
@@ -997,7 +997,7 @@ _equalRawStmt(const RawStmt *a, const RawStmt *b)
{
COMPARE_NODE_FIELD(stmt);
COMPARE_LOCATION_FIELD(stmt_location);
- COMPARE_LOCATION_FIELD(stmt_len);
+ COMPARE_SCALAR_FIELD(stmt_len);
return true;
}
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
index ebf3ce37aaa..e2f177515da 100644
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -319,7 +319,7 @@ _outPlannedStmt(StringInfo str, const PlannedStmt *node)
WRITE_NODE_FIELD(paramExecTypes);
WRITE_NODE_FIELD(utilityStmt);
WRITE_LOCATION_FIELD(stmt_location);
- WRITE_LOCATION_FIELD(stmt_len);
+ WRITE_INT_FIELD(stmt_len);
}
/*
@@ -2135,6 +2135,7 @@ _outLimitPath(StringInfo str, const LimitPath *node)
WRITE_NODE_FIELD(subpath);
WRITE_NODE_FIELD(limitOffset);
WRITE_NODE_FIELD(limitCount);
+ WRITE_ENUM_FIELD(limitOption, LimitOption);
}
static void
@@ -2966,7 +2967,7 @@ _outQuery(StringInfo str, const Query *node)
WRITE_NODE_FIELD(constraintDeps);
WRITE_NODE_FIELD(withCheckOptions);
WRITE_LOCATION_FIELD(stmt_location);
- WRITE_LOCATION_FIELD(stmt_len);
+ WRITE_INT_FIELD(stmt_len);
}
static void
diff --git a/src/backend/nodes/readfuncs.c b/src/backend/nodes/readfuncs.c
index eb01584a5f6..42050ab7195 100644
--- a/src/backend/nodes/readfuncs.c
+++ b/src/backend/nodes/readfuncs.c
@@ -284,7 +284,7 @@ _readQuery(void)
READ_NODE_FIELD(constraintDeps);
READ_NODE_FIELD(withCheckOptions);
READ_LOCATION_FIELD(stmt_location);
- READ_LOCATION_FIELD(stmt_len);
+ READ_INT_FIELD(stmt_len);
READ_DONE();
}
@@ -1552,7 +1552,7 @@ _readPlannedStmt(void)
READ_NODE_FIELD(paramExecTypes);
READ_NODE_FIELD(utilityStmt);
READ_LOCATION_FIELD(stmt_location);
- READ_LOCATION_FIELD(stmt_len);
+ READ_INT_FIELD(stmt_len);
READ_DONE();
}