aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/preproc/variable.pgc
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/ecpg/test/preproc/variable.pgc')
-rw-r--r--src/interfaces/ecpg/test/preproc/variable.pgc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/test/preproc/variable.pgc b/src/interfaces/ecpg/test/preproc/variable.pgc
index 697a7dc8143..423a01c16e2 100644
--- a/src/interfaces/ecpg/test/preproc/variable.pgc
+++ b/src/interfaces/ecpg/test/preproc/variable.pgc
@@ -35,7 +35,7 @@ exec sql end declare section;
exec sql char *married = NULL;
exec sql long ind_married;
exec sql ind children;
-
+ int loopcount;
char msg[128];
ECPGdebug(1, stderr);
@@ -67,7 +67,7 @@ exec sql end declare section;
p=&personal;
i=&ind_personal;
memset(i, 0, sizeof(ind_personal));
- while (1) {
+ for (loopcount = 0; loopcount < 100; loopcount++) {
strcpy(msg, "fetch");
exec sql fetch cur into :p:i, :married:ind_married, :children.integer:ind_children.smallint;
printf("%8.8s", personal.name.arr);