ecpg: Avoid C99-ism in newly-added test for Oracle compat

Per buildfarm member mylodon.  As C99 declarations are allowed in v12~,
this is adjusted only on REL_11_STABLE.  Introduced by 9eb44bb.
This commit is contained in:
Michael Paquier 2023-04-18 12:00:31 +09:00
parent 9eb44bb043
commit dbd25dd0b5
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ int main() {
EXEC SQL WHENEVER SQLERROR SQLPRINT;
const char *ppppp = "XXXXX";
int loopcount;
int loopcount, i;
sqlda_t *sqlda = NULL;
EXEC SQL BEGIN DECLARE SECTION;
@ -70,7 +70,7 @@ int main() {
EXEC SQL FETCH NEXT FROM cur1 INTO DESCRIPTOR sqlda;
printf("\n-----------------\ntype : data\n");
for (int i = 0 ; i < sqlda->sqld ; i++)
for (i = 0 ; i < sqlda->sqld ; i++)
{
sqlvar_t v = sqlda->sqlvar[i];
char *sqldata = v.sqldata;

View File

@ -67,7 +67,7 @@ int main() {
const char *ppppp = "XXXXX";
int loopcount;
int loopcount, i;
sqlda_t *sqlda = NULL;
/* exec sql begin declare section */
@ -280,7 +280,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
printf("\n-----------------\ntype : data\n");
for (int i = 0 ; i < sqlda->sqld ; i++)
for (i = 0 ; i < sqlda->sqld ; i++)
{
sqlvar_t v = sqlda->sqlvar[i];
char *sqldata = v.sqldata;