MySQL 8.0.40
Source Code Documentation
|
The internal state of the syntax parser. More...
#include <sql_lexer_yacc_state.h>
Public Member Functions | |
Yacc_state () | |
void | reset () |
~Yacc_state () | |
void | reset_before_substatement () |
Reset part of the state which needs resetting before parsing substatement. More... | |
Yacc_state () | |
void | reset () |
~Yacc_state () | |
void | reset_before_substatement () |
Reset part of the state which needs resetting before parsing substatement. More... | |
Public Attributes | |
uchar * | yacc_yyss |
Bison internal state stack, yyss, when dynamically allocated using my_yyoverflow(). More... | |
uchar * | yacc_yyvs |
Bison internal semantic value stack, yyvs, when dynamically allocated using my_yyoverflow(). More... | |
uchar * | yacc_yyls |
Bison internal location value stack, yyls, when dynamically allocated using my_yyoverflow(). More... | |
thr_lock_type | m_lock_type |
Type of lock to be used for tables being added to the statement's table list in table_factor, table_alias_ref, single_multi and table_wild_one rules. More... | |
enum_mdl_type | m_mdl_type |
The type of requested metadata lock for tables added to the statement table list. More... | |
The internal state of the syntax parser.
This object is only available during parsing, and is private to the syntax parser implementation (sql_yacc.yy).
|
inline |
|
inline |
|
inline |
Yacc_state::~Yacc_state | ( | ) |
|
inline |
|
inline |
|
inline |
Reset part of the state which needs resetting before parsing substatement.
|
inline |
Reset part of the state which needs resetting before parsing substatement.
thr_lock_type Yacc_state::m_lock_type |
Type of lock to be used for tables being added to the statement's table list in table_factor, table_alias_ref, single_multi and table_wild_one rules.
Statements which use these rules but require lock type different from one specified by this member have to override it by using Query_block::set_lock_for_tables() method.
The default value of this member is TL_READ_DEFAULT. The only two cases in which we change it are:
We should try to avoid introducing new use cases as we would like to get rid of this member eventually.
enum_mdl_type Yacc_state::m_mdl_type |
The type of requested metadata lock for tables added to the statement table list.
uchar * Yacc_state::yacc_yyls |
Bison internal location value stack, yyls, when dynamically allocated using my_yyoverflow().
uchar * Yacc_state::yacc_yyss |
Bison internal state stack, yyss, when dynamically allocated using my_yyoverflow().
uchar * Yacc_state::yacc_yyvs |
Bison internal semantic value stack, yyvs, when dynamically allocated using my_yyoverflow().