mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Add Statement::sql_command_flags() function.
Now one can call thd->sql_command_flags() instead of sql_command_flags[thd->lex->sql_command].
This commit is contained in:
committed by
Oleksandr Byelkin
parent
4246c0fa01
commit
62d35a074f
@@ -1489,6 +1489,8 @@ struct send_column_info_state
|
||||
}
|
||||
};
|
||||
|
||||
extern uint sql_command_flags[];
|
||||
|
||||
|
||||
/**
|
||||
@class Statement
|
||||
@@ -1569,6 +1571,10 @@ public:
|
||||
{
|
||||
set_query_inner(CSET_STRING());
|
||||
}
|
||||
ulong sql_command_flags() const
|
||||
{
|
||||
return ::sql_command_flags[lex->sql_command];
|
||||
}
|
||||
/**
|
||||
Name of the current (default) database.
|
||||
|
||||
|
Reference in New Issue
Block a user