Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita7b1a00

Browse files
author
Byron Nikolaidis
committed
missing state transition
1 parent18baa97 commita7b1a00

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎src/interfaces/odbc/execute.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ static char *func = "SQLExecDirect";
157157
mylog("**** %s: hstmt=%u, statement='%s'\n",func,hstmt,stmt->statement);
158158

159159
stmt->prepare= FALSE;
160+
161+
// If an SQLPrepare was performed prior to this, but was left in
162+
// the premature state because an error occurred prior to SQLExecute
163+
// then set the statement to finished so it can be recycled.
164+
if (stmt->status==STMT_PREMATURE )
165+
stmt->status=STMT_FINISHED;
166+
160167
stmt->statement_type=statement_type(stmt->statement);
161168

162169
//Check if connection is onlyread (only selects are allowed)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp