summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorHiroshi Inoue2014-06-01 09:35:50 +0000
committerHiroshi Inoue2014-06-19 12:17:35 +0000
commit78f3af2da199bebac26640d502b124a4d33827cf (patch)
tree4f875b46f265d38227067fc07348660a7365f6e9 /execute.c
parenta5fed2338b59ae16a2d3a8d2744b084949684775 (diff)
Clear errors for prepared statement for subsequent exections.
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