Skip to content
Snippets Groups Projects
Commit a7b1a008 authored by Byron Nikolaidis's avatar Byron Nikolaidis
Browse files

missing state transition

parent 18baa979
No related branches found
No related tags found
No related merge requests found
...@@ -157,6 +157,13 @@ static char *func = "SQLExecDirect"; ...@@ -157,6 +157,13 @@ static char *func = "SQLExecDirect";
mylog("**** %s: hstmt=%u, statement='%s'\n", func, hstmt, stmt->statement); mylog("**** %s: hstmt=%u, statement='%s'\n", func, hstmt, stmt->statement);
stmt->prepare = FALSE; stmt->prepare = FALSE;
// If an SQLPrepare was performed prior to this, but was left in
// the premature state because an error occurred prior to SQLExecute
// then set the statement to finished so it can be recycled.
if ( stmt->status == STMT_PREMATURE )
stmt->status = STMT_FINISHED;
stmt->statement_type = statement_type(stmt->statement); stmt->statement_type = statement_type(stmt->statement);
// Check if connection is onlyread (only selects are allowed) // Check if connection is onlyread (only selects are allowed)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment