projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad85280
)
fixed C99 mode.
author
Hiroshi Saito
<hiroshi@winpg.jp>
Thu, 19 Nov 2020 08:47:03 +0000
(17:47 +0900)
committer
Hiroshi Saito
<hiroshi@winpg.jp>
Thu, 19 Nov 2020 08:47:03 +0000
(17:47 +0900)
test/src/params-batch-exec-test.c
patch
|
blob
|
blame
|
history
diff --git
a/test/src/params-batch-exec-test.c
b/test/src/params-batch-exec-test.c
index d46f890becbe4d31d9c72d82e9242d27c683b609..0d3c45c64cae6232797aa16a0ed375a150fd02b0 100644
(file)
--- 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 (i
nt i
= 0; i < repcnt; i++)
+ for (i = 0; i < repcnt; i++)
{
printf("row %d status=%s\n", i,
(status[i] == SQL_PARAM_SUCCESS ? "success" :