From: zacheiss Date: Tue, 13 Aug 2002 15:51:51 +0000 (+0000) Subject: Some globals that really should be wrapped in X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/066fdd26439ce257da9ddbb276afb838cba7f46d Some globals that really should be wrapped in EXEC SQL BEGIN/END DECLARE SECTION. --- diff --git a/server/increment.pc b/server/increment.pc index ea75a862..cf30ddda 100644 --- a/server/increment.pc +++ b/server/increment.pc @@ -34,6 +34,7 @@ time_t inc_started; EXEC SQL WHENEVER SQLERROR DO dbmserr(); +EXEC SQL BEGIN DECLARE SECTION; /* structures to save before args */ static char *before[MAXARGC]; static int beforec; @@ -42,6 +43,7 @@ static enum tables beforetable; /* structures to save after args */ static char *after[MAXARGC]; static int afterc; +EXEC SQL END DECLARE SECTION; /* structures to save entire sets of incremental changes */ struct save_queue *incremental_sq = NULL;