summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi Saito2020-05-26 10:00:35 +0000
committerHiroshi Saito2020-05-26 10:00:35 +0000
commit8c1ab524ee10cde1b3113d3054dd109f6bd0c66e (patch)
treeeed06522cf12c38d70fcdc3b79bd8b773f301ac6
parent2556c78660e6c8ffd269efb0ed93106d7410791a (diff)
fixed loop initial declaration used outside C99 mode.
-rw-r--r--execute.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/execute.c b/execute.c
index fc8ef7b..25985fa 100644
--- a/execute.c
+++ b/execute.c
@@ -410,9 +410,10 @@ const char *GetSvpName(const ConnectionClass *conn, char *wrk, int wrksize)
static
void param_status_batch_update(IPDFields *ipdopts, RETCODE retval, SQLLEN target_row, int count_of_deffered)
{
+ int i, j;
if (NULL != ipdopts->param_status_ptr)
{
- for (int i = target_row, j = 0; i >= 0 && j <= count_of_deffered; i--)
+ for (i = target_row, j = 0; i >= 0 && j <= count_of_deffered; i--)
{
if (SQL_PARAM_UNUSED != ipdopts->param_status_ptr[i])
{
@@ -501,7 +502,8 @@ MYLOG(0, "about to begin SC_execute exec_type=%d\n", exec_type);
if (LAST_EXEC == exec_type &&
NULL != ipdopts->param_status_ptr)
{
- for (int i = end_row; i >= start_row; i--)
+ int i;
+ for (i = end_row; i >= start_row; i--)
{
if (SQL_PARAM_UNUSED != ipdopts->param_status_ptr[i])
{