mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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.
This commit is contained in:
@ -101,7 +101,7 @@ _copyPlannedStmt(const PlannedStmt *from)
|
|||||||
COPY_NODE_FIELD(paramExecTypes);
|
COPY_NODE_FIELD(paramExecTypes);
|
||||||
COPY_NODE_FIELD(utilityStmt);
|
COPY_NODE_FIELD(utilityStmt);
|
||||||
COPY_LOCATION_FIELD(stmt_location);
|
COPY_LOCATION_FIELD(stmt_location);
|
||||||
COPY_LOCATION_FIELD(stmt_len);
|
COPY_SCALAR_FIELD(stmt_len);
|
||||||
|
|
||||||
return newnode;
|
return newnode;
|
||||||
}
|
}
|
||||||
@ -3090,7 +3090,7 @@ _copyQuery(const Query *from)
|
|||||||
COPY_NODE_FIELD(constraintDeps);
|
COPY_NODE_FIELD(constraintDeps);
|
||||||
COPY_NODE_FIELD(withCheckOptions);
|
COPY_NODE_FIELD(withCheckOptions);
|
||||||
COPY_LOCATION_FIELD(stmt_location);
|
COPY_LOCATION_FIELD(stmt_location);
|
||||||
COPY_LOCATION_FIELD(stmt_len);
|
COPY_SCALAR_FIELD(stmt_len);
|
||||||
|
|
||||||
return newnode;
|
return newnode;
|
||||||
}
|
}
|
||||||
@ -3102,7 +3102,7 @@ _copyRawStmt(const RawStmt *from)
|
|||||||
|
|
||||||
COPY_NODE_FIELD(stmt);
|
COPY_NODE_FIELD(stmt);
|
||||||
COPY_LOCATION_FIELD(stmt_location);
|
COPY_LOCATION_FIELD(stmt_location);
|
||||||
COPY_LOCATION_FIELD(stmt_len);
|
COPY_SCALAR_FIELD(stmt_len);
|
||||||
|
|
||||||
return newnode;
|
return newnode;
|
||||||
}
|
}
|
||||||
|
@ -987,7 +987,7 @@ _equalQuery(const Query *a, const Query *b)
|
|||||||
COMPARE_NODE_FIELD(constraintDeps);
|
COMPARE_NODE_FIELD(constraintDeps);
|
||||||
COMPARE_NODE_FIELD(withCheckOptions);
|
COMPARE_NODE_FIELD(withCheckOptions);
|
||||||
COMPARE_LOCATION_FIELD(stmt_location);
|
COMPARE_LOCATION_FIELD(stmt_location);
|
||||||
COMPARE_LOCATION_FIELD(stmt_len);
|
COMPARE_SCALAR_FIELD(stmt_len);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -997,7 +997,7 @@ _equalRawStmt(const RawStmt *a, const RawStmt *b)
|
|||||||
{
|
{
|
||||||
COMPARE_NODE_FIELD(stmt);
|
COMPARE_NODE_FIELD(stmt);
|
||||||
COMPARE_LOCATION_FIELD(stmt_location);
|
COMPARE_LOCATION_FIELD(stmt_location);
|
||||||
COMPARE_LOCATION_FIELD(stmt_len);
|
COMPARE_SCALAR_FIELD(stmt_len);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -319,7 +319,7 @@ _outPlannedStmt(StringInfo str, const PlannedStmt *node)
|
|||||||
WRITE_NODE_FIELD(paramExecTypes);
|
WRITE_NODE_FIELD(paramExecTypes);
|
||||||
WRITE_NODE_FIELD(utilityStmt);
|
WRITE_NODE_FIELD(utilityStmt);
|
||||||
WRITE_LOCATION_FIELD(stmt_location);
|
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(subpath);
|
||||||
WRITE_NODE_FIELD(limitOffset);
|
WRITE_NODE_FIELD(limitOffset);
|
||||||
WRITE_NODE_FIELD(limitCount);
|
WRITE_NODE_FIELD(limitCount);
|
||||||
|
WRITE_ENUM_FIELD(limitOption, LimitOption);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -2966,7 +2967,7 @@ _outQuery(StringInfo str, const Query *node)
|
|||||||
WRITE_NODE_FIELD(constraintDeps);
|
WRITE_NODE_FIELD(constraintDeps);
|
||||||
WRITE_NODE_FIELD(withCheckOptions);
|
WRITE_NODE_FIELD(withCheckOptions);
|
||||||
WRITE_LOCATION_FIELD(stmt_location);
|
WRITE_LOCATION_FIELD(stmt_location);
|
||||||
WRITE_LOCATION_FIELD(stmt_len);
|
WRITE_INT_FIELD(stmt_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -284,7 +284,7 @@ _readQuery(void)
|
|||||||
READ_NODE_FIELD(constraintDeps);
|
READ_NODE_FIELD(constraintDeps);
|
||||||
READ_NODE_FIELD(withCheckOptions);
|
READ_NODE_FIELD(withCheckOptions);
|
||||||
READ_LOCATION_FIELD(stmt_location);
|
READ_LOCATION_FIELD(stmt_location);
|
||||||
READ_LOCATION_FIELD(stmt_len);
|
READ_INT_FIELD(stmt_len);
|
||||||
|
|
||||||
READ_DONE();
|
READ_DONE();
|
||||||
}
|
}
|
||||||
@ -1552,7 +1552,7 @@ _readPlannedStmt(void)
|
|||||||
READ_NODE_FIELD(paramExecTypes);
|
READ_NODE_FIELD(paramExecTypes);
|
||||||
READ_NODE_FIELD(utilityStmt);
|
READ_NODE_FIELD(utilityStmt);
|
||||||
READ_LOCATION_FIELD(stmt_location);
|
READ_LOCATION_FIELD(stmt_location);
|
||||||
READ_LOCATION_FIELD(stmt_len);
|
READ_INT_FIELD(stmt_len);
|
||||||
|
|
||||||
READ_DONE();
|
READ_DONE();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user