aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/preproc/autoprep.pgc
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/ecpg/test/preproc/autoprep.pgc')
-rw-r--r--src/interfaces/ecpg/test/preproc/autoprep.pgc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/test/preproc/autoprep.pgc b/src/interfaces/ecpg/test/preproc/autoprep.pgc
index 31c3ab7a56e..d3d9305da5b 100644
--- a/src/interfaces/ecpg/test/preproc/autoprep.pgc
+++ b/src/interfaces/ecpg/test/preproc/autoprep.pgc
@@ -50,7 +50,7 @@ static void test(void) {
EXEC SQL WHENEVER NOT FOUND DO BREAK;
i = 0;
- while (1)
+ while (i < 100)
{
EXEC SQL FETCH cur1 INTO :item1:ind1;
printf("item[%d] = %d\n", i, ind1 ? -1 : item1);