Commit 587322de authored by Noah Misch's avatar Noah Misch

Reconcile nodes/*funcs.c.

The stmt_len changes do not affect behavior.  LimitPath has no other
support functions, so that part changes only debugging output.
parent 650eac8d
......@@ -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;
}
......
......@@ -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;
}
......
......@@ -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
......
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment