aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/preproc/whenever_do_continue.pgc
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/ecpg/test/preproc/whenever_do_continue.pgc')
-rw-r--r--src/interfaces/ecpg/test/preproc/whenever_do_continue.pgc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/test/preproc/whenever_do_continue.pgc b/src/interfaces/ecpg/test/preproc/whenever_do_continue.pgc
index 2a925a3c54f..146afecbbba 100644
--- a/src/interfaces/ecpg/test/preproc/whenever_do_continue.pgc
+++ b/src/interfaces/ecpg/test/preproc/whenever_do_continue.pgc
@@ -13,7 +13,7 @@ int main(void)
float sal;
float comm;
} emp;
-
+ int loopcount;
char msg[128];
exec sql end declare section;
@@ -41,7 +41,7 @@ int main(void)
/* The DO CONTINUE makes the loop start at the next iteration when an error occurs.*/
exec sql whenever sqlerror do continue;
- while (1)
+ for (loopcount = 0; loopcount < 100; loopcount++)
{
exec sql fetch c into :emp;
/* The employees with non-NULL commissions will be displayed. */