File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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
21402141static 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
29722973static void
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments