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
ea0ca75d
Commit
ea0ca75d
authored
Aug 14, 2017
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed ecpg parser to allow RETURNING clauses without attached C variables.
parent
004a9702
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
src/interfaces/ecpg/preproc/ecpg.trailer
src/interfaces/ecpg/preproc/ecpg.trailer
+5
-2
src/interfaces/ecpg/preproc/ecpg.type
src/interfaces/ecpg/preproc/ecpg.type
+1
-0
src/interfaces/ecpg/preproc/parse.pl
src/interfaces/ecpg/preproc/parse.pl
+1
-1
No files found.
src/interfaces/ecpg/preproc/ecpg.trailer
View file @
ea0ca75d
...
...
@@ -1877,9 +1877,8 @@ Iresult: Iconst { $$ = $1; }
;
execute_rest: /* EMPTY */ { $$ = EMPTY; }
| ecpg_using ecpg_into { $$ = EMPTY; }
| ecpg_using
opt_
ecpg_into { $$ = EMPTY; }
| ecpg_into ecpg_using { $$ = EMPTY; }
| ecpg_using { $$ = EMPTY; }
| ecpg_into { $$ = EMPTY; }
;
...
...
@@ -1887,6 +1886,10 @@ ecpg_into: INTO into_list { $$ = EMPTY; }
| into_descriptor { $$ = $1; }
;
opt_ecpg_into: /* EMPTY */ { $$ = EMPTY; }
| ecpg_into { $$ = $1; }
;
ecpg_fetch_into: ecpg_into { $$ = $1; }
| using_descriptor
{
...
...
src/interfaces/ecpg/preproc/ecpg.type
View file @
ea0ca75d
...
...
@@ -78,6 +78,7 @@
%type <str> opt_bit_field
%type <str> opt_connection_name
%type <str> opt_database_name
%type <str> opt_ecpg_into
%type <str> opt_ecpg_fetch_into
%type <str> opt_ecpg_using
%type <str> opt_initializer
...
...
src/interfaces/ecpg/preproc/parse.pl
View file @
ea0ca75d
...
...
@@ -98,7 +98,7 @@ my %replace_line = (
'
VariableShowStmtSHOWSESSIONAUTHORIZATION
'
=>
'
SHOW SESSION AUTHORIZATION ecpg_into
',
'
returning_clauseRETURNINGtarget_list
'
=>
'
RETURNING target_list ecpg_into
',
'
RETURNING target_list
opt_
ecpg_into
',
'
ExecuteStmtEXECUTEnameexecute_param_clause
'
=>
'
EXECUTE prepared_name execute_param_clause execute_rest
',
'
ExecuteStmtCREATEOptTempTABLEcreate_as_targetASEXECUTEnameexecute_param_clause
'
...
...
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