Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit2ea5d8b

Browse files
committed
Mark some new location fields as ParseLoc
Some new code probably didn't see605721f and continued to usetype int for parse location fields. Fix those.
1 parentec07d0d commit2ea5d8b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎src/include/nodes/parsenodes.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,7 @@ typedef struct JsonFuncExpr
17991799
JsonBehavior*on_error;/* ON ERROR behavior */
18001800
JsonWrapperwrapper;/* array wrapper behavior (JSON_QUERY only) */
18011801
JsonQuotesquotes;/* omit or keep quotes? (JSON_QUERY only) */
1802-
intlocation;/* token location, or -1 if unknown */
1802+
ParseLoclocation;/* token location, or -1 if unknown */
18031803
}JsonFuncExpr;
18041804

18051805
/*
@@ -1813,8 +1813,8 @@ typedef struct JsonTablePathSpec
18131813

18141814
Node*string;
18151815
char*name;
1816-
intname_location;
1817-
intlocation;/* location of 'string' */
1816+
ParseLocname_location;
1817+
ParseLoclocation;/* location of 'string' */
18181818
}JsonTablePathSpec;
18191819

18201820
/*
@@ -1831,7 +1831,7 @@ typedef struct JsonTable
18311831
JsonBehavior*on_error;/* ON ERROR behavior */
18321832
Alias*alias;/* table alias in FROM clause */
18331833
boollateral;/* does it have LATERAL prefix? */
1834-
intlocation;/* token location, or -1 if unknown */
1834+
ParseLoclocation;/* token location, or -1 if unknown */
18351835
}JsonTable;
18361836

18371837
/*
@@ -1864,7 +1864,7 @@ typedef struct JsonTableColumn
18641864
List*columns;/* nested columns */
18651865
JsonBehavior*on_empty;/* ON EMPTY behavior */
18661866
JsonBehavior*on_error;/* ON ERROR behavior */
1867-
intlocation;/* token location, or -1 if unknown */
1867+
ParseLoclocation;/* token location, or -1 if unknown */
18681868
}JsonTableColumn;
18691869

18701870
/*

‎src/include/nodes/primnodes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ typedef struct JsonBehavior
17561756
JsonBehaviorTypebtype;
17571757
Node*expr;
17581758
boolcoerce;
1759-
intlocation;/* token location, or -1 if unknown */
1759+
ParseLoclocation;/* token location, or -1 if unknown */
17601760
}JsonBehavior;
17611761

17621762
/*
@@ -1825,7 +1825,7 @@ typedef struct JsonExpr
18251825
Oidcollation;
18261826

18271827
/* Original JsonFuncExpr's location */
1828-
intlocation;
1828+
ParseLoclocation;
18291829
}JsonExpr;
18301830

18311831
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp