diff options
| author | Hiroshi Inoue | 2014-06-01 09:35:50 +0000 |
|---|---|---|
| committer | Hiroshi Inoue | 2014-06-19 12:17:35 +0000 |
| commit | 78f3af2da199bebac26640d502b124a4d33827cf (patch) | |
| tree | 4f875b46f265d38227067fc07348660a7365f6e9 /execute.c | |
| parent | a5fed2338b59ae16a2d3a8d2744b084949684775 (diff) | |
Clear errors for prepared statement for subsequent exections.
Diffstat (limited to 'execute.c')
| -rw-r--r-- | execute.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 |
