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
cdd91468
Commit
cdd91468
authored
Sep 26, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The trailing semicolon in a plpgsql function definition is now optional.
Per gripe 9/26.
parent
d435592f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/pl/plpgsql/src/gram.y
src/pl/plpgsql/src/gram.y
+9
-5
No files found.
src/pl/plpgsql/src/gram.y
View file @
cdd91468
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* procedural language
* procedural language
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.2
4 2001/07/12 17:42:07 momjian
Exp $
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.2
5 2001/09/26 21:35:28 tgl
Exp $
*
*
* This software is copyrighted by Jan Wieck - Hamburg.
* This software is copyrighted by Jan Wieck - Hamburg.
*
*
...
@@ -210,11 +210,11 @@ static PLpgSQL_expr *make_tupret_expr(PLpgSQL_row *row);
...
@@ -210,11 +210,11 @@ static PLpgSQL_expr *make_tupret_expr(PLpgSQL_row *row);
%%
%%
pl_function : T_FUNCTION comp_optsect pl_block
pl_function : T_FUNCTION comp_optsect pl_block
opt_semi
{
{
yylval.program = (PLpgSQL_stmt_block *)$3;
yylval.program = (PLpgSQL_stmt_block *)$3;
}
}
| T_TRIGGER comp_optsect pl_block
| T_TRIGGER comp_optsect pl_block
opt_semi
{
{
yylval.program = (PLpgSQL_stmt_block *)$3;
yylval.program = (PLpgSQL_stmt_block *)$3;
}
}
...
@@ -234,7 +234,11 @@ comp_option : O_OPTION O_DUMP
...
@@ -234,7 +234,11 @@ comp_option : O_OPTION O_DUMP
}
}
;
;
pl_block : decl_sect K_BEGIN lno proc_sect K_END ';'
opt_semi :
| ';'
;
pl_block : decl_sect K_BEGIN lno proc_sect K_END
{
{
PLpgSQL_stmt_block *new;
PLpgSQL_stmt_block *new;
...
@@ -704,7 +708,7 @@ proc_stmts : proc_stmts proc_stmt
...
@@ -704,7 +708,7 @@ proc_stmts : proc_stmts proc_stmt
}
}
;
;
proc_stmt : pl_block
proc_stmt : pl_block
';'
{ $$ = $1; }
{ $$ = $1; }
| stmt_assign
| stmt_assign
{ $$ = $1; }
{ $$ = $1; }
...
...
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