Skip to content

Commit

Permalink
ODBC-261 direct execution could be used for old servers
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrinn committed Jul 24, 2019
1 parent 7ac764a commit 18ee34b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ma_statement.c
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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))
{
Expand Down

0 comments on commit 18ee34b

Please sign in to comment.