Skip to content

Commit 587322d

Browse 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

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

src/backend/nodes/copyfuncs.c

Lines 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

Lines 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

Lines 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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy