mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 11:15:33 +02:00
dict_create_index_step(): Invoke dict_index_add_to_cache()
in strict mode only if innodb_strict_mode is set. (Bug #50495) trx_is_strict(): New function, for checking innodb_strict_mode.
This commit is contained in:
parent
3b7ff90d7e
commit
bac9559ecf
4 changed files with 30 additions and 1 deletions
|
|
@ -1816,6 +1816,19 @@ trx_is_interrupted(
|
|||
return(trx && trx->mysql_thd && thd_killed((THD*) trx->mysql_thd));
|
||||
}
|
||||
|
||||
/**********************************************************************//**
|
||||
Determines if the currently running transaction is in strict mode.
|
||||
@return TRUE if strict */
|
||||
extern "C" UNIV_INTERN
|
||||
ibool
|
||||
trx_is_strict(
|
||||
/*==========*/
|
||||
trx_t* trx) /*!< in: transaction */
|
||||
{
|
||||
return(trx && trx->mysql_thd
|
||||
&& THDVAR((THD*) trx->mysql_thd, strict_mode));
|
||||
}
|
||||
|
||||
/**************************************************************//**
|
||||
Resets some fields of a prebuilt struct. The template is used in fast
|
||||
retrieval of just those column values MySQL needs in its processing. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue