Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2ea5d8b

Browse files
committed
Mark some new location fields as ParseLoc
Some new code probably didn't see 605721f and continued to use type int for parse location fields. Fix those.
1 parent ec07d0d commit 2ea5d8b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/include/nodes/parsenodes.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,7 @@ typedef struct JsonFuncExpr
17991799
JsonBehavior *on_error; /* ON ERROR behavior */
18001800
JsonWrapper wrapper; /* array wrapper behavior (JSON_QUERY only) */
18011801
JsonQuotes quotes; /* omit or keep quotes? (JSON_QUERY only) */
1802-
int location; /* token location, or -1 if unknown */
1802+
ParseLoc location; /* 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-
int name_location;
1817-
int location; /* location of 'string' */
1816+
ParseLoc name_location;
1817+
ParseLoc location; /* 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
bool lateral; /* does it have LATERAL prefix? */
1834-
int location; /* token location, or -1 if unknown */
1834+
ParseLoc location; /* 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-
int location; /* token location, or -1 if unknown */
1867+
ParseLoc location; /* token location, or -1 if unknown */
18681868
} JsonTableColumn;
18691869

18701870
/*

src/include/nodes/primnodes.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ typedef struct JsonBehavior
17561756
JsonBehaviorType btype;
17571757
Node *expr;
17581758
bool coerce;
1759-
int location; /* token location, or -1 if unknown */
1759+
ParseLoc location; /* token location, or -1 if unknown */
17601760
} JsonBehavior;
17611761

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

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

18311831
/*

0 commit comments

Comments
 (0)