Skip to content
Permalink
Browse files

ODBC-261 direct execution could be used for old servers

  • Loading branch information...
lawrinn committed Jul 24, 2019
1 parent 7ac764a commit 18ee34b7a01ddf9bafbeaff0a5d2940f3c4b05e5
Showing with 2 additions and 2 deletions.
  1. +2 −2 ma_statement.c
@@ -310,7 +310,7 @@ BOOL MADB_CheckIfExecDirectPossible(MADB_Stmt *Stmt)
}
/* }}} */

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

ret= MADB_DoExecute(Stmt, ExecDirect);
ret= MADB_DoExecute(Stmt, ExecDirect && MADB_CheckIfExecDirectPossible(Stmt));

if (!SQL_SUCCEEDED(ret))
{

0 comments on commit 18ee34b

Please sign in to comment.
You can’t perform that action at this time.