mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@ -2142,6 +2142,38 @@ public:
|
||||
DBUG_RETURN((stmt_accessed_table_flag & (1U << accessed_table)) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
Checks either a trans/non trans temporary table is being accessed while
|
||||
executing a statement.
|
||||
|
||||
@return
|
||||
@retval TRUE if a temporary table is being accessed
|
||||
@retval FALSE otherwise
|
||||
*/
|
||||
inline bool stmt_accessed_temp_table()
|
||||
{
|
||||
DBUG_ENTER("THD::stmt_accessed_temp_table");
|
||||
DBUG_RETURN(stmt_accessed_non_trans_temp_table() ||
|
||||
stmt_accessed_trans_temp_table());
|
||||
}
|
||||
|
||||
/**
|
||||
Checks if a temporary transactional table is being accessed while executing
|
||||
a statement.
|
||||
|
||||
@return
|
||||
@retval TRUE if a temporary transactional table is being accessed
|
||||
@retval FALSE otherwise
|
||||
*/
|
||||
inline bool stmt_accessed_trans_temp_table()
|
||||
{
|
||||
DBUG_ENTER("THD::stmt_accessed_trans_temp_table");
|
||||
|
||||
DBUG_RETURN((stmt_accessed_table_flag &
|
||||
((1U << STMT_READS_TEMP_TRANS_TABLE) |
|
||||
(1U << STMT_WRITES_TEMP_TRANS_TABLE))) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
Checks if a temporary non-transactional table is about to be accessed
|
||||
while executing a statement.
|
||||
|
Reference in New Issue
Block a user