diff options
author | unknown <bell@laptop.sanja.is.com.ua> | 2003-08-16 13:26:48 +0300 |
---|---|---|
committer | unknown <bell@laptop.sanja.is.com.ua> | 2003-08-16 13:26:48 +0300 |
commit | 3808546d8a67d62420f9111998d94e44050ac313 (patch) | |
tree | 196e72d196b908a9b1a230f0e0095fa06571fc11 /sql/item.h | |
parent | 791f49f4e7de1b4c4b11b8b9a0207740b9adb59e (diff) | |
download | mariadb-git-3808546d8a67d62420f9111998d94e44050ac313.tar.gz |
Code cleanup
sql/item.cc:
As far as now transformer called after setup_wild() it is impossible to have '*' Item
sql/item.h:
As far as now transformer called after setup_wild() it is impossible to have '*' Item
sql/item_subselect.cc:
replaced Item_ref_on_list_position (which need erly ref_array initialisation)
sql/mysql_priv.h:
setup_ref_array moved to st_select_lex class
sql/sql_delete.cc:
setup_ref_array moved to st_select_lex class
sql/sql_derived.cc:
setup_ref_array moved to st_select_lex class
sql/sql_lex.cc:
removed double initialisation
select_n_having_items moved to any query initializations, because it used in setup_ref_array method
setup_ref_array moved to st_select_lex class
sql/sql_lex.h:
setup_ref_array moved to st_select_lex class
sql/sql_select.cc:
setup_ref_array moved to st_select_lex class
sql/sql_table.cc:
setup_ref_array moved to st_select_lex class
sql/sql_union.cc:
setup_ref_array moved to st_select_lex class
sql/sql_update.cc:
setup_ref_array moved to st_select_lex class
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/sql/item.h b/sql/item.h index ce8b4062580..6b7730f77db 100644 --- a/sql/item.h +++ b/sql/item.h @@ -638,33 +638,6 @@ public: }; /* - Used to find item in list of select items after '*' items processing. - - Because item '*' can be used in item list. when we create - Item_ref_on_list_position we do not know how item list will be changed, but - we know number of item position (I mean queries like "select * from t"). -*/ -class Item_ref_on_list_position: public Item_ref_null_helper -{ -protected: - /* - select_lex used for: - 1) receiving expanded variant of item list (to check max possible - number of elements); - 2) to have access to ref_pointer_array, via wich item will refered. - */ - st_select_lex *select_lex; - uint pos; -public: - Item_ref_on_list_position(Item_in_subselect* master, - st_select_lex *sl, uint num, - char *table_name, char *field_name): - Item_ref_null_helper(master, 0, table_name, field_name), - select_lex(sl), pos(num) {} - bool fix_fields(THD *, struct st_table_list *, Item ** ref); -}; - -/* The following class is used to optimize comparing of date columns We need to save the original item, to be able to set the field to the original value in 'opt_range'. |