diff options
author | unknown <bell@sanja.is.com.ua> | 2002-10-08 23:49:59 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-10-08 23:49:59 +0300 |
commit | ac97cce4617a52d100cb2b5fa6c6c972c3510702 (patch) | |
tree | 71154ef484f41fba7f785d13f291e3838104779f /sql/item_subselect.h | |
parent | 58dc03066c8b8c38cdfa47e1f3c99ee002551b4f (diff) | |
download | mariadb-git-ac97cce4617a52d100cb2b5fa6c6c972c3510702.tar.gz |
removed 'this' pointer from initialization list of constructors
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r-- | sql/item_subselect.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h index 92839eb0e5f..5d070871b49 100644 --- a/sql/item_subselect.h +++ b/sql/item_subselect.h @@ -39,8 +39,7 @@ protected: uint max_columns; public: - Item_subselect(THD *thd, st_select_lex *select_lex, - select_subselect* result); + Item_subselect(); Item_subselect(Item_subselect *item) { null_value= item->null_value; @@ -50,6 +49,14 @@ public: engine_owner= 0; name= item->name; } + + /* + We need this method, because some compilers do not allow 'this' + pointer in constructor initialization list, but we need pass pointer + to subselect Item class to select_subselect classes constructor. + */ + void init (THD *thd, st_select_lex *select_lex, select_subselect *result); + ~Item_subselect(); virtual void assign_null() { |