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
f139617b
Commit
f139617b
authored
Feb 27, 1998
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
From: Michael Meskes <meskes@topsystem.de>
Subject: [PATCHES] ecpg: correct whenever statement
parent
73d309f5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
src/interfaces/Makefile
src/interfaces/Makefile
+2
-2
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+6
-0
src/interfaces/ecpg/TODO
src/interfaces/ecpg/TODO
+1
-1
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/ecpg/preproc/pgc.l
+0
-1
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+4
-9
No files found.
src/interfaces/Makefile
View file @
f139617b
...
...
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/Makefile,v 1.
7 1998/02/17 01:47:19
scrappy Exp $
# $Header: /cvsroot/pgsql/src/interfaces/Makefile,v 1.
8 1998/02/27 02:31:02
scrappy Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -16,7 +16,7 @@ include $(SRCDIR)/Makefile.global
.DEFAULT all
:
$(MAKE)
-C
libpq
$@
$(MAKE)
-C
ecpg
$@
#
$(MAKE) -C ecpg $@
ifeq
($(HAVE_Cplusplus), true)
$(MAKE)
-C
libpq++
$@
else
...
...
src/interfaces/ecpg/ChangeLog
View file @
f139617b
...
...
@@ -56,3 +56,9 @@ Thu Feb 24 12:26:12 CET 1998
- allow 'go to' in whenever statement as well as 'goto'
- new argument 'stop' for whenever statement
Wed Feb 25 15:46:50 CET 1998
- corrected whenever continue handling
- removed whenever break
src/interfaces/ecpg/TODO
View file @
f139617b
...
...
@@ -47,7 +47,7 @@ The cursor is opened when the declare statement is issued.
ecpg does not understand enum datatypes.
The is no exec sql prepare statement.
The
re
is no exec sql prepare statement.
The complete structure definition has to be listed inside the declare
section for ecpg to be able to understand it.
...
...
src/interfaces/ecpg/preproc/pgc.l
View file @
f139617b
...
...
@@ -19,7 +19,6 @@ label ({letter}|{digit})*
string '[^']*'
begin [bB][eE][gG][iI][nN]
break [bB][rR][eE][aA][kK]
commit [cC][oO][mM][mM][iI][tT]
connect [cC][oO][nN][nN][eE][cC][tT]
continue [cC][oO][nN][tT][iI][nN][uU][eE]
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
f139617b
...
...
@@ -228,7 +228,7 @@ dump_variables(struct arguments * list)
%token <tagname> SQL_BEGIN SQL_END SQL_DECLARE SQL_SECTION SQL_INCLUDE
%token <tagname> SQL_CONNECT SQL_OPEN SQL_EXECUTE SQL_IMMEDIATE
%token <tagname> SQL_COMMIT SQL_ROLLBACK SQL_RELEASE SQL_WORK SQL_WHENEVER
%token <tagname> SQL_SQLERROR SQL_NOT_FOUND SQL_
BREAK SQL_
CONTINUE
%token <tagname> SQL_SQLERROR SQL_NOT_FOUND SQL_CONTINUE
%token <tagname> SQL_DO SQL_GOTO SQL_SQLPRINT SQL_STOP
%token <tagname> S_SYMBOL S_LENGTH S_ANYTHING S_LABEL
...
...
@@ -526,13 +526,8 @@ sqlwhenever : SQL_START SQL_WHENEVER SQL_SQLERROR {
fprintf(yyout, "; */\n");
}
action : SQL_BREAK {
$<action>$.code = W_BREAK;
$<action>$.str = NULL;
fprintf(yyout, "break");
}
| SQL_CONTINUE {
$<action>$.code = W_CONTINUE;
action : SQL_CONTINUE {
$<action>$.code = W_NOTHING;
$<action>$.str = NULL;
fprintf(yyout, "continue");
}
...
...
@@ -615,7 +610,7 @@ sqlstatement_word : ':' symbol
into_list : ':' symbol {
add_variable(&argsresult, find_variable($2));
}
| into_list ',' ':' symbol{
| into_list ',' ':' symbol
{
add_variable(&argsresult, find_variable($4));
};
...
...
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