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
0af302af
Commit
0af302af
authored
Nov 11, 2020
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some stray whitespace in parser files
parent
4e3ffd59
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
31 deletions
+31
-31
src/backend/bootstrap/bootscanner.l
src/backend/bootstrap/bootscanner.l
+1
-1
src/backend/parser/gram.y
src/backend/parser/gram.y
+9
-9
src/backend/utils/adt/jsonpath_gram.y
src/backend/utils/adt/jsonpath_gram.y
+3
-3
src/interfaces/ecpg/preproc/ecpg.trailer
src/interfaces/ecpg/preproc/ecpg.trailer
+18
-18
No files found.
src/backend/bootstrap/bootscanner.l
View file @
0af302af
...
@@ -88,7 +88,7 @@ _null_ { return NULLVAL; }
...
@@ -88,7 +88,7 @@ _null_ { return NULLVAL; }
[\n] { yyline++; }
[\n] { yyline++; }
[\r\t ] ;
[\r\t ] ;
^\#[^\n]*
; /* drop everything after "#" for comments */
^\#[^\n]* ; /* drop everything after "#" for comments */
declare { yylval.kw = "declare"; return XDECLARE; }
declare { yylval.kw = "declare"; return XDECLARE; }
build { yylval.kw = "build"; return XBUILD; }
build { yylval.kw = "build"; return XBUILD; }
...
...
src/backend/parser/gram.y
View file @
0af302af
...
@@ -1483,7 +1483,7 @@ generic_set:
...
@@ -1483,7 +1483,7 @@ generic_set:
;
;
set_rest_more: /* Generic SET syntaxes: */
set_rest_more: /* Generic SET syntaxes: */
generic_set
{$$ = $1;}
generic_set
{$$ = $1;}
| var_name FROM CURRENT_P
| var_name FROM CURRENT_P
{
{
VariableSetStmt *n = makeNode(VariableSetStmt);
VariableSetStmt *n = makeNode(VariableSetStmt);
...
@@ -4996,8 +4996,8 @@ ImportForeignSchemaStmt:
...
@@ -4996,8 +4996,8 @@ ImportForeignSchemaStmt:
;
;
import_qualification_type:
import_qualification_type:
LIMIT TO
{ $$ = FDW_IMPORT_SCHEMA_LIMIT_TO; }
LIMIT TO { $$ = FDW_IMPORT_SCHEMA_LIMIT_TO; }
| EXCEPT
{ $$ = FDW_IMPORT_SCHEMA_EXCEPT; }
| EXCEPT { $$ = FDW_IMPORT_SCHEMA_EXCEPT; }
;
;
import_qualification:
import_qualification:
...
@@ -10538,8 +10538,8 @@ vac_analyze_option_name:
...
@@ -10538,8 +10538,8 @@ vac_analyze_option_name:
vac_analyze_option_arg:
vac_analyze_option_arg:
opt_boolean_or_string { $$ = (Node *) makeString($1); }
opt_boolean_or_string { $$ = (Node *) makeString($1); }
| NumericOnly { $$ = (Node *) $1; }
| NumericOnly
{ $$ = (Node *) $1; }
| /* EMPTY */
{ $$ = NULL; }
| /* EMPTY */ { $$ = NULL; }
;
;
opt_analyze:
opt_analyze:
...
@@ -11773,10 +11773,10 @@ for_locking_item:
...
@@ -11773,10 +11773,10 @@ for_locking_item:
;
;
for_locking_strength:
for_locking_strength:
FOR UPDATE
{ $$ = LCS_FORUPDATE; }
FOR UPDATE { $$ = LCS_FORUPDATE; }
| FOR NO KEY UPDATE
{ $$ = LCS_FORNOKEYUPDATE; }
| FOR NO KEY UPDATE
{ $$ = LCS_FORNOKEYUPDATE; }
| FOR SHARE
{ $$ = LCS_FORSHARE; }
| FOR SHARE
{ $$ = LCS_FORSHARE; }
| FOR KEY SHARE
{ $$ = LCS_FORKEYSHARE; }
| FOR KEY SHARE
{ $$ = LCS_FORKEYSHARE; }
;
;
locked_rels_list:
locked_rels_list:
...
...
src/backend/utils/adt/jsonpath_gram.y
View file @
0af302af
...
@@ -153,7 +153,7 @@ scalar_value:
...
@@ -153,7 +153,7 @@ scalar_value:
| FALSE_P { $$ = makeItemBool(false); }
| FALSE_P { $$ = makeItemBool(false); }
| NUMERIC_P { $$ = makeItemNumeric(&$1); }
| NUMERIC_P { $$ = makeItemNumeric(&$1); }
| INT_P { $$ = makeItemNumeric(&$1); }
| INT_P { $$ = makeItemNumeric(&$1); }
| VARIABLE_P
{ $$ = makeItemVariable(&$1); }
| VARIABLE_P { $$ = makeItemVariable(&$1); }
;
;
comp_op:
comp_op:
...
@@ -175,12 +175,12 @@ predicate:
...
@@ -175,12 +175,12 @@ predicate:
| expr comp_op expr { $$ = makeItemBinary($2, $1, $3); }
| expr comp_op expr { $$ = makeItemBinary($2, $1, $3); }
| predicate AND_P predicate { $$ = makeItemBinary(jpiAnd, $1, $3); }
| predicate AND_P predicate { $$ = makeItemBinary(jpiAnd, $1, $3); }
| predicate OR_P predicate { $$ = makeItemBinary(jpiOr, $1, $3); }
| predicate OR_P predicate { $$ = makeItemBinary(jpiOr, $1, $3); }
| NOT_P delimited_predicate
{ $$ = makeItemUnary(jpiNot, $2); }
| NOT_P delimited_predicate
{ $$ = makeItemUnary(jpiNot, $2); }
| '(' predicate ')' IS_P UNKNOWN_P
| '(' predicate ')' IS_P UNKNOWN_P
{ $$ = makeItemUnary(jpiIsUnknown, $2); }
{ $$ = makeItemUnary(jpiIsUnknown, $2); }
| expr STARTS_P WITH_P starts_with_initial
| expr STARTS_P WITH_P starts_with_initial
{ $$ = makeItemBinary(jpiStartsWith, $1, $4); }
{ $$ = makeItemBinary(jpiStartsWith, $1, $4); }
| expr LIKE_REGEX_P STRING_P
{ $$ = makeItemLikeRegex($1, &$3, NULL); }
| expr LIKE_REGEX_P STRING_P { $$ = makeItemLikeRegex($1, &$3, NULL); }
| expr LIKE_REGEX_P STRING_P FLAG_P STRING_P
| expr LIKE_REGEX_P STRING_P FLAG_P STRING_P
{ $$ = makeItemLikeRegex($1, &$3, &$5); }
{ $$ = makeItemLikeRegex($1, &$3, &$5); }
;
;
...
...
src/interfaces/ecpg/preproc/ecpg.trailer
View file @
0af302af
...
@@ -36,7 +36,7 @@ CreateAsStmt: CREATE OptTemp TABLE create_as_target AS {FoundInto = 0;} SelectSt
...
@@ -36,7 +36,7 @@ CreateAsStmt: CREATE OptTemp TABLE create_as_target AS {FoundInto = 0;} SelectSt
$$ = cat_str(7, mm_strdup("create"), $2, mm_strdup("table"), $4, mm_strdup("as"), $7, $8);
$$ = cat_str(7, mm_strdup("create"), $2, mm_strdup("table"), $4, mm_strdup("as"), $7, $8);
}
}
| CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS {FoundInto = 0;} SelectStmt opt_with_data
| CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS {FoundInto = 0;} SelectStmt opt_with_data
{
{
if (FoundInto == 1)
if (FoundInto == 1)
mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE AS cannot specify INTO");
mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE AS cannot specify INTO");
...
@@ -1821,27 +1821,27 @@ c_anything: ecpg_ident { $$ = $1; }
...
@@ -1821,27 +1821,27 @@ c_anything: ecpg_ident { $$ = $1; }
| ':' { $$ = mm_strdup(":"); }
| ':' { $$ = mm_strdup(":"); }
;
;
DeallocateStmt: DEALLOCATE prepared_name
{ $$ = $2; }
DeallocateStmt: DEALLOCATE prepared_name
{ $$ = $2; }
| DEALLOCATE PREPARE prepared_name
{ $$ = $3; }
| DEALLOCATE PREPARE prepared_name
{ $$ = $3; }
| DEALLOCATE ALL
{ $$ = mm_strdup("all"); }
| DEALLOCATE ALL
{ $$ = mm_strdup("all"); }
| DEALLOCATE PREPARE ALL
{ $$ = mm_strdup("all"); }
| DEALLOCATE PREPARE ALL
{ $$ = mm_strdup("all"); }
;
;
Iresult:
Iconst
{ $$ = $1; }
Iresult:
Iconst
{ $$ = $1; }
| '(' Iresult ')'
{ $$ = cat_str(3, mm_strdup("("), $2, mm_strdup(")")); }
| '(' Iresult ')'
{ $$ = cat_str(3, mm_strdup("("), $2, mm_strdup(")")); }
| Iresult '+' Iresult { $$ = cat_str(3, $1, mm_strdup("+"), $3); }
| Iresult '+' Iresult { $$ = cat_str(3, $1, mm_strdup("+"), $3); }
| Iresult '-' Iresult { $$ = cat_str(3, $1, mm_strdup("-"), $3); }
| Iresult '-' Iresult { $$ = cat_str(3, $1, mm_strdup("-"), $3); }
| Iresult '*' Iresult { $$ = cat_str(3, $1, mm_strdup("*"), $3); }
| Iresult '*' Iresult { $$ = cat_str(3, $1, mm_strdup("*"), $3); }
| Iresult '/' Iresult { $$ = cat_str(3, $1, mm_strdup("/"), $3); }
| Iresult '/' Iresult { $$ = cat_str(3, $1, mm_strdup("/"), $3); }
| Iresult '%' Iresult { $$ = cat_str(3, $1, mm_strdup("%"), $3); }
| Iresult '%' Iresult { $$ = cat_str(3, $1, mm_strdup("%"), $3); }
| ecpg_sconst
{ $$ = $1; }
| ecpg_sconst
{ $$ = $1; }
| ColId
{ $$ = $1; }
| ColId
{ $$ = $1; }
| ColId '(' var_type ')'
{ if (pg_strcasecmp($1, "sizeof") != 0)
| ColId '(' var_type ')'
{ if (pg_strcasecmp($1, "sizeof") != 0)
mmerror(PARSE_ERROR, ET_ERROR, "operator not allowed in variable definition");
mmerror(PARSE_ERROR, ET_ERROR, "operator not allowed in variable definition");
else
else
$$ = cat_str(4, $1, mm_strdup("("), $3.type_str, mm_strdup(")"));
$$ = cat_str(4, $1, mm_strdup("("), $3.type_str, mm_strdup(")"));
}
}
;
;
execute_rest: /* EMPTY */ { $$ = EMPTY; }
execute_rest: /* EMPTY */ { $$ = EMPTY; }
| ecpg_using opt_ecpg_into { $$ = EMPTY; }
| ecpg_using opt_ecpg_into { $$ = EMPTY; }
...
...
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