mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Added DDL_options_st *thd_ddl_options(const MYSQL_THD thd)
This is used by InnoDB to detect if CREATE...SELECT is used Other things: - Changed InnoDB to use thd_ddl_options() - Removed lock checking code for create...select (Approved by Marko)
This commit is contained in:
@ -499,6 +499,18 @@ int thd_sql_command(const THD *thd)
|
||||
return (int) thd->lex->sql_command;
|
||||
}
|
||||
|
||||
/*
|
||||
Returns options used with DDL's, like IF EXISTS etc...
|
||||
Will returns 'nonsense' if the command was not a DDL.
|
||||
*/
|
||||
|
||||
extern "C"
|
||||
struct DDL_options_st *thd_ddl_options(const THD *thd)
|
||||
{
|
||||
return &thd->lex->create_info;
|
||||
}
|
||||
|
||||
|
||||
extern "C"
|
||||
int thd_tx_isolation(const THD *thd)
|
||||
{
|
||||
|
Reference in New Issue
Block a user