diff options
author | unknown <ramil@poseidon.ndb.mysql.com> | 2005-11-06 01:36:40 +0100 |
---|---|---|
committer | unknown <ramil@poseidon.ndb.mysql.com> | 2005-11-06 01:36:40 +0100 |
commit | d090acf3203b4bf1756f051e00eac909c9572aa4 (patch) | |
tree | 1707a2584dbcc072b0ee59d90c6ce1371a192fe4 /sql/sql_lex.h | |
parent | cf02f52cc098dce1135ec75fbc40fa03eb90088b (diff) | |
download | mariadb-git-d090acf3203b4bf1756f051e00eac909c9572aa4.tar.gz |
1. sys_variables[] array is removed.
2. All have_xxx variables are now selectable.
sql/set_var.cc:
1. sys_have_xxx variables added.
2. Removed sys_var *sys_variables[] array as we don't need it any more.
3. void set_var_init() changed to use sys_var_xxx chain insted of sys_variables[] array.
sql/set_var.h:
1. add_sys_var() method added to the sys_var class. It's called from constructors
to chain all successor objects. The first one is stored in the 'static sys_var *first'.
The total number of variables is in the 'static uint sys_vars'. Each sys_var successor object
has the 'sys_var *next' pointer to the next one in the chain.
2. sys_var_have_variable class introduced to make all have_xxx variables selectable.
sql/sql_lex.cc:
trg_new_row_fake_var(0, 0) replaced with '(sys_var*) 0x01' as we don't want to have such fake variables in the sys_var_xxx chain.
sql/sql_lex.h:
Proper use of the changed trg_new_row_fake_var.
sql/sql_yacc.yy:
Proper use of the changed trg_new_row_fake_var.
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index 96ed32a0d2e..c9868be0d82 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -702,7 +702,7 @@ struct st_trg_chistics enum trg_event_type event; }; -extern sys_var_long_ptr trg_new_row_fake_var; +extern sys_var *trg_new_row_fake_var; enum xa_option_words {XA_NONE, XA_JOIN, XA_RESUME, XA_ONE_PHASE, XA_SUSPEND, XA_FOR_MIGRATE}; |