aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/sql/quote.pgc
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/ecpg/test/sql/quote.pgc')
-rw-r--r--src/interfaces/ecpg/test/sql/quote.pgc4
1 files changed, 2 insertions, 2 deletions
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);