Skip to content

Commit 18ee34b

Browse files
committed
ODBC-261 direct execution could be used for old servers
1 parent 7ac764a commit 18ee34b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ma_statement.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ BOOL MADB_CheckIfExecDirectPossible(MADB_Stmt *Stmt)
310310
}
311311
/* }}} */
312312

313-
/* {{{ MADB_CheckIfExecDirectPossible
313+
/* {{{ MADB_BulkInsertPossible
314314
Checking if we can deploy mariadb_stmt_execute_direct */
315315
BOOL MADB_BulkInsertPossible(MADB_Stmt *Stmt)
316316
{
@@ -1206,7 +1206,7 @@ SQLRETURN MADB_StmtExecute(MADB_Stmt *Stmt, BOOL ExecDirect)
12061206
Stmt->RebindParams= FALSE;
12071207
}
12081208

1209-
ret= MADB_DoExecute(Stmt, ExecDirect);
1209+
ret= MADB_DoExecute(Stmt, ExecDirect && MADB_CheckIfExecDirectPossible(Stmt));
12101210

12111211
if (!SQL_SUCCEEDED(ret))
12121212
{

0 commit comments

Comments
 (0)