Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
5e28b778
Commit
5e28b778
authored
Mar 19, 2019
by
Alexander Korotkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename typedef in jsonpath_gram.y from "string" to "JsonPathString"
Reason is the same as in
75c57058
.
parent
1009920a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
src/backend/utils/adt/jsonpath_gram.y
src/backend/utils/adt/jsonpath_gram.y
+7
-6
src/backend/utils/adt/jsonpath_scan.l
src/backend/utils/adt/jsonpath_scan.l
+1
-1
src/include/utils/jsonpath_scanner.h
src/include/utils/jsonpath_scanner.h
+3
-3
No files found.
src/backend/utils/adt/jsonpath_gram.y
View file @
5e28b778
...
@@ -48,7 +48,7 @@ makeItemType(int type)
...
@@ -48,7 +48,7 @@ makeItemType(int type)
}
}
static JsonPathParseItem*
static JsonPathParseItem*
makeItemString(
s
tring *s)
makeItemString(
JsonPathS
tring *s)
{
{
JsonPathParseItem *v;
JsonPathParseItem *v;
...
@@ -67,7 +67,7 @@ makeItemString(string *s)
...
@@ -67,7 +67,7 @@ makeItemString(string *s)
}
}
static JsonPathParseItem*
static JsonPathParseItem*
makeItemVariable(
s
tring *s)
makeItemVariable(
JsonPathS
tring *s)
{
{
JsonPathParseItem *v;
JsonPathParseItem *v;
...
@@ -79,7 +79,7 @@ makeItemVariable(string *s)
...
@@ -79,7 +79,7 @@ makeItemVariable(string *s)
}
}
static JsonPathParseItem*
static JsonPathParseItem*
makeItemKey(
s
tring *s)
makeItemKey(
JsonPathS
tring *s)
{
{
JsonPathParseItem *v;
JsonPathParseItem *v;
...
@@ -90,7 +90,7 @@ makeItemKey(string *s)
...
@@ -90,7 +90,7 @@ makeItemKey(string *s)
}
}
static JsonPathParseItem*
static JsonPathParseItem*
makeItemNumeric(
s
tring *s)
makeItemNumeric(
JsonPathS
tring *s)
{
{
JsonPathParseItem *v;
JsonPathParseItem *v;
...
@@ -210,7 +210,8 @@ makeAny(int first, int last)
...
@@ -210,7 +210,8 @@ makeAny(int first, int last)
}
}
static JsonPathParseItem *
static JsonPathParseItem *
makeItemLikeRegex(JsonPathParseItem *expr, string *pattern, string *flags)
makeItemLikeRegex(JsonPathParseItem *expr, JsonPathString *pattern,
JsonPathString *flags)
{
{
JsonPathParseItem *v = makeItemType(jpiLikeRegex);
JsonPathParseItem *v = makeItemType(jpiLikeRegex);
int i;
int i;
...
@@ -267,7 +268,7 @@ makeItemLikeRegex(JsonPathParseItem *expr, string *pattern, string *flags)
...
@@ -267,7 +268,7 @@ makeItemLikeRegex(JsonPathParseItem *expr, string *pattern, string *flags)
%parse-param {JsonPathParseResult **result}
%parse-param {JsonPathParseResult **result}
%union {
%union {
string
str;
JsonPathString
str;
List *elems; /* list of JsonPathParseItem */
List *elems; /* list of JsonPathParseItem */
List *indexs; /* list of integers */
List *indexs; /* list of integers */
JsonPathParseItem *value;
JsonPathParseItem *value;
...
...
src/backend/utils/adt/jsonpath_scan.l
View file @
5e28b778
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#include "nodes/pg_list.h"
#include "nodes/pg_list.h"
#include "utils/jsonpath_scanner.h"
#include "utils/jsonpath_scanner.h"
static
s
tring scanstring;
static
JsonPathS
tring scanstring;
/* No reason to constrain amount of data slurped */
/* No reason to constrain amount of data slurped */
/* #define YY_READ_BUF_SIZE 16777216 */
/* #define YY_READ_BUF_SIZE 16777216 */
...
...
src/include/utils/jsonpath_scanner.h
View file @
5e28b778
...
@@ -13,13 +13,13 @@
...
@@ -13,13 +13,13 @@
#ifndef JSONPATH_SCANNER_H
#ifndef JSONPATH_SCANNER_H
#define JSONPATH_SCANNER_H
#define JSONPATH_SCANNER_H
/* struct
s
tring is shared between scan and gram */
/* struct
JsonPathS
tring is shared between scan and gram */
typedef
struct
s
tring
typedef
struct
JsonPathS
tring
{
{
char
*
val
;
char
*
val
;
int
len
;
int
len
;
int
total
;
int
total
;
}
s
tring
;
}
JsonPathS
tring
;
#include "utils/jsonpath.h"
#include "utils/jsonpath.h"
#include "utils/jsonpath_gram.h"
#include "utils/jsonpath_gram.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment