Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 587322d

Browse filesBrowse files
committed
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.
1 parent 650eac8 commit 587322d
Copy full SHA for 587322d

File tree

Expand file treeCollapse file tree

4 files changed

+10
-9
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+10
-9
lines changed

‎src/backend/nodes/copyfuncs.c

Copy file name to clipboardExpand all lines: src/backend/nodes/copyfuncs.c
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ _copyPlannedStmt(const PlannedStmt *from)
101101
COPY_NODE_FIELD(paramExecTypes);
102102
COPY_NODE_FIELD(utilityStmt);
103103
COPY_LOCATION_FIELD(stmt_location);
104-
COPY_LOCATION_FIELD(stmt_len);
104+
COPY_SCALAR_FIELD(stmt_len);
105105

106106
return newnode;
107107
}
@@ -3090,7 +3090,7 @@ _copyQuery(const Query *from)
30903090
COPY_NODE_FIELD(constraintDeps);
30913091
COPY_NODE_FIELD(withCheckOptions);
30923092
COPY_LOCATION_FIELD(stmt_location);
3093-
COPY_LOCATION_FIELD(stmt_len);
3093+
COPY_SCALAR_FIELD(stmt_len);
30943094

30953095
return newnode;
30963096
}
@@ -3102,7 +3102,7 @@ _copyRawStmt(const RawStmt *from)
31023102

31033103
COPY_NODE_FIELD(stmt);
31043104
COPY_LOCATION_FIELD(stmt_location);
3105-
COPY_LOCATION_FIELD(stmt_len);
3105+
COPY_SCALAR_FIELD(stmt_len);
31063106

31073107
return newnode;
31083108
}

‎src/backend/nodes/equalfuncs.c

Copy file name to clipboardExpand all lines: src/backend/nodes/equalfuncs.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ _equalQuery(const Query *a, const Query *b)
987987
COMPARE_NODE_FIELD(constraintDeps);
988988
COMPARE_NODE_FIELD(withCheckOptions);
989989
COMPARE_LOCATION_FIELD(stmt_location);
990-
COMPARE_LOCATION_FIELD(stmt_len);
990+
COMPARE_SCALAR_FIELD(stmt_len);
991991

992992
return true;
993993
}
@@ -997,7 +997,7 @@ _equalRawStmt(const RawStmt *a, const RawStmt *b)
997997
{
998998
COMPARE_NODE_FIELD(stmt);
999999
COMPARE_LOCATION_FIELD(stmt_location);
1000-
COMPARE_LOCATION_FIELD(stmt_len);
1000+
COMPARE_SCALAR_FIELD(stmt_len);
10011001

10021002
return true;
10031003
}

‎src/backend/nodes/outfuncs.c

Copy file name to clipboardExpand all lines: src/backend/nodes/outfuncs.c
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ _outPlannedStmt(StringInfo str, const PlannedStmt *node)
319319
WRITE_NODE_FIELD(paramExecTypes);
320320
WRITE_NODE_FIELD(utilityStmt);
321321
WRITE_LOCATION_FIELD(stmt_location);
322-
WRITE_LOCATION_FIELD(stmt_len);
322+
WRITE_INT_FIELD(stmt_len);
323323
}
324324

325325
/*
@@ -2135,6 +2135,7 @@ _outLimitPath(StringInfo str, const LimitPath *node)
21352135
WRITE_NODE_FIELD(subpath);
21362136
WRITE_NODE_FIELD(limitOffset);
21372137
WRITE_NODE_FIELD(limitCount);
2138+
WRITE_ENUM_FIELD(limitOption, LimitOption);
21382139
}
21392140

21402141
static void
@@ -2966,7 +2967,7 @@ _outQuery(StringInfo str, const Query *node)
29662967
WRITE_NODE_FIELD(constraintDeps);
29672968
WRITE_NODE_FIELD(withCheckOptions);
29682969
WRITE_LOCATION_FIELD(stmt_location);
2969-
WRITE_LOCATION_FIELD(stmt_len);
2970+
WRITE_INT_FIELD(stmt_len);
29702971
}
29712972

29722973
static void

‎src/backend/nodes/readfuncs.c

Copy file name to clipboardExpand all lines: src/backend/nodes/readfuncs.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ _readQuery(void)
284284
READ_NODE_FIELD(constraintDeps);
285285
READ_NODE_FIELD(withCheckOptions);
286286
READ_LOCATION_FIELD(stmt_location);
287-
READ_LOCATION_FIELD(stmt_len);
287+
READ_INT_FIELD(stmt_len);
288288

289289
READ_DONE();
290290
}
@@ -1552,7 +1552,7 @@ _readPlannedStmt(void)
15521552
READ_NODE_FIELD(paramExecTypes);
15531553
READ_NODE_FIELD(utilityStmt);
15541554
READ_LOCATION_FIELD(stmt_location);
1555-
READ_LOCATION_FIELD(stmt_len);
1555+
READ_INT_FIELD(stmt_len);
15561556

15571557
READ_DONE();
15581558
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.