From: Hiroshi Saito Date: Thu, 19 Nov 2020 08:47:03 +0000 (+0900) Subject: fixed C99 mode. X-Git-Tag: REL-13_00_0000~1 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/queryCache.php?a=commitdiff_plain;h=15eb2d2195186ca177d0a480e7a05368a0e4cd21;p=psqlodbc.git fixed C99 mode. --- diff --git a/test/src/params-batch-exec-test.c b/test/src/params-batch-exec-test.c index d46f890..0d3c45c 100644 --- a/test/src/params-batch-exec-test.c +++ b/test/src/params-batch-exec-test.c @@ -8,6 +8,7 @@ static void b_result(SQLRETURN rc, HSTMT stmt, int repcnt, SQLUSMALLINT status[]) { + int i; printf("insert into test_batch returns %d\n", rc); if (!SQL_SUCCEEDED(rc)) print_diag("", SQL_HANDLE_STMT, stmt); @@ -15,7 +16,7 @@ static void b_result(SQLRETURN rc, HSTMT stmt, int repcnt, SQLUSMALLINT status[ if (SQL_SUCCESS != rc) disp_stmt_error(stmt); */ - for (int i = 0; i < repcnt; i++) + for (i = 0; i < repcnt; i++) { printf("row %d status=%s\n", i, (status[i] == SQL_PARAM_SUCCESS ? "success" :