diff options
Diffstat (limited to 'src/interfaces/ecpg/test/sql')
-rw-r--r-- | src/interfaces/ecpg/test/sql/fetch.pgc | 6 | ||||
-rw-r--r-- | src/interfaces/ecpg/test/sql/quote.pgc | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/ecpg/test/sql/fetch.pgc b/src/interfaces/ecpg/test/sql/fetch.pgc index aade678efbe..8a5d07994ab 100644 --- a/src/interfaces/ecpg/test/sql/fetch.pgc +++ b/src/interfaces/ecpg/test/sql/fetch.pgc @@ -7,7 +7,7 @@ EXEC SQL INCLUDE ../regression; int main() { EXEC SQL BEGIN DECLARE SECTION; char str[25]; - int i, count=1; + int i, count=1, loopcount; EXEC SQL END DECLARE SECTION; ECPGdebug(1, stderr); @@ -28,7 +28,7 @@ int main() { EXEC SQL OPEN C; EXEC SQL WHENEVER NOT FOUND DO BREAK; - while (1) { + for (loopcount = 0; loopcount < 100; loopcount++) { EXEC SQL FETCH 1 IN C INTO :i, :str; printf("%d: %s\n", i, str); } @@ -46,7 +46,7 @@ int main() { EXEC SQL OPEN D using 1; EXEC SQL WHENEVER NOT FOUND DO BREAK; - while (1) { + for (loopcount = 0; loopcount < 100; loopcount++) { EXEC SQL FETCH 1 IN D INTO :i, :str; printf("%d: %s\n", i, str); } diff --git a/src/interfaces/ecpg/test/sql/quote.pgc b/src/interfaces/ecpg/test/sql/quote.pgc index 9dd997323cc..83efb034840 100644 --- a/src/interfaces/ecpg/test/sql/quote.pgc +++ b/src/interfaces/ecpg/test/sql/quote.pgc @@ -7,7 +7,7 @@ EXEC SQL INCLUDE ../regression; int main() { EXEC SQL BEGIN DECLARE SECTION; char var[25]; - int i; + int i, loopcount; EXEC SQL END DECLARE SECTION; ECPGdebug(1, stderr); @@ -46,7 +46,7 @@ int main() { EXEC SQL WHENEVER NOT FOUND DO BREAK; - while (true) + for (loopcount = 0; loopcount < 100; loopcount++) { EXEC SQL FETCH C INTO :i, :var; printf("value: %d %s\n", i, var); |