summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/execute.c b/execute.c
index 7931fe8..257a46b 100644
--- a/execute.c
+++ b/execute.c
@@ -976,16 +976,13 @@ PGAPI_Execute(HSTMT hstmt, UWORD flag)
else if (PREPARED_PERMANENTLY == stmt->prepared ||
PREPARED_TEMPORARILY == stmt->prepared)
{
- QResultClass *res;
-
/*
* re-executing an prepared statement.
* Don't recycle the statement but
* discard the old result.
*/
recycle = FALSE;
- if (res = SC_get_Result(stmt), res)
- QR_close_result(res, FALSE);
+ SC_reset_result_for_rerun(stmt);
}
/*
* If SQLExecute is being called again, recycle the statement. Note