aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-02-27 02:31:20 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-02-27 02:31:20 +0000
commitf139617b553e87f4b2a49542ab9b3b74a7348a1b (patch)
treeedcdeba70754d5f09353faa53609bc34f70484f4
parent73d309f54bbb8c1baaa9259d41d7d9bf3ef35453 (diff)
downloadpostgresql-f139617b553e87f4b2a49542ab9b3b74a7348a1b.tar.gz
postgresql-f139617b553e87f4b2a49542ab9b3b74a7348a1b.zip
From: Michael Meskes <meskes@topsystem.de>
Subject: [PATCHES] ecpg: correct whenever statement
-rw-r--r--src/interfaces/Makefile4
-rw-r--r--src/interfaces/ecpg/ChangeLog6
-rw-r--r--src/interfaces/ecpg/TODO2
-rw-r--r--src/interfaces/ecpg/preproc/pgc.l1
-rw-r--r--src/interfaces/ecpg/preproc/preproc.y13
5 files changed, 13 insertions, 13 deletions
diff --git a/src/interfaces/Makefile b/src/interfaces/Makefile
index 5dac21202cf..e2a70dc6b1e 100644
--- a/src/interfaces/Makefile
+++ b/src/interfaces/Makefile
@@ -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
diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog
index bb39d213947..8501e99dc28 100644
--- a/src/interfaces/ecpg/ChangeLog
+++ b/src/interfaces/ecpg/ChangeLog
@@ -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
+
diff --git a/src/interfaces/ecpg/TODO b/src/interfaces/ecpg/TODO
index dab3e0b4deb..a10dbd7521f 100644
--- a/src/interfaces/ecpg/TODO
+++ b/src/interfaces/ecpg/TODO
@@ -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.
+There 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.
diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l
index 5523d0fce71..8bb9b73f0de 100644
--- a/src/interfaces/ecpg/preproc/pgc.l
+++ b/src/interfaces/ecpg/preproc/pgc.l
@@ -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]
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y
index 2a77c441a6e..30b9cb9ade3 100644
--- a/src/interfaces/ecpg/preproc/preproc.y
+++ b/src/interfaces/ecpg/preproc/preproc.y
@@ -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));
};