summaryrefslogtreecommitdiff
path: root/statement.c
diff options
context:
space:
mode:
authorHiroshi Inoue2021-04-14 04:45:00 +0000
committerHiroshi Inoue2021-04-21 22:33:33 +0000
commitefc410ad11c38f0e759d976484771ea122f126d5 (patch)
tree26790df19fcae53e07bb0426271072eb8d92ddeb /statement.c
parentc7908d73c6a5ab7a3f69cd43dc47b0593d7aa178 (diff)
Let SQLExecute() destroy the old result first.
This change fixes the diff of insertreturning-test regression test reported by Patrick Cheung.
Diffstat (limited to 'statement.c')
-rw-r--r--statement.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/statement.c b/statement.c
index d79d323..972aa50 100644
--- a/statement.c
+++ b/statement.c
@@ -2122,6 +2122,7 @@ SC_execute(StatementClass *self)
if (CONN_DOWN != conn->status)
conn->status = oldstatus;
self->status = STMT_FINISHED;
+MYLOG(0, "set %p STMT_FINISHED\n", self);
LEAVE_INNER_CONN_CS(func_cs_count, conn);
/* Check the status of the result */
@@ -3072,6 +3073,7 @@ BOOL SC_SetExecuting(StatementClass *self, BOOL on)
{
self->cancel_info = 0;
self->status = STMT_FINISHED;
+MYLOG(0, "set %p STMT_FINISHED\n", self);
exeSet = TRUE;
}
LEAVE_COMMON_CS;