git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 650eac8)
Reconcile nodes/*funcs.c.
2020年5月25日 23:23:48 +0000 (16:23 -0700)
2020年5月25日 23:23:48 +0000 (16:23 -0700)
The stmt_len changes do not affect behavior. LimitPath has no other
support functions, so that part changes only debugging output.


diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c
index 491452ae2d41053978e77cc92c2c65d8a885f14e..d8cf87e6d0886eaf177b0d7cbca0988c0889752e 100644 (file)
--- 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 8408c28ec6990fdaaf716b2fb10d8191b014b713..627b026b195e570d964be44b45bb15614f342b53 100644 (file)
--- 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 ebf3ce37aaa8df9084b858219395d2458858d51b..e2f177515dac3ea6220c8a18e1f7089ca6705d38 100644 (file)
--- 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 eb01584a5f667275413446ee62840dacf8ec2a8b..42050ab71955a134aa3d99b287fcdcd3b5cf78d2 100644 (file)
--- 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();
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /