diff options
author | unknown <dlenev@mysql.com> | 2004-09-23 13:52:00 +0400 |
---|---|---|
committer | unknown <dlenev@mysql.com> | 2004-09-23 13:52:00 +0400 |
commit | 412a052a7dfa454de8f54499beb5cb2a5d56f06d (patch) | |
tree | df8e7ee6040b348bdba7d2e245e594507926aa05 /sql/sql_class.h | |
parent | ccf52b4fd5bd7ae0a418d22f2758cef345b6afa6 (diff) | |
parent | 7ba5d931eb6611a1b3794d3c4378381060ac925d (diff) | |
download | mariadb-git-412a052a7dfa454de8f54499beb5cb2a5d56f06d.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/dlenev/src/mysql-4.1-memroot
sql/sql_class.cc:
Auto merged
sql/sql_class.h:
Auto merged
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 09b44568f90..68d187168d3 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -441,11 +441,23 @@ public: STATEMENT, PREPARED_STATEMENT, STORED_PROCEDURE }; + /* + This constructor is used only when Item_arena is created as + backup storage for another instance of Item_arena. + */ + Item_arena() {}; + /* + Create arena for already constructed THD using its variables as + parameters for memory root initialization. + */ Item_arena(THD *thd); - Item_arena(); + /* + Create arena and optionally init memory root with minimal values. + Particularly used if Item_arena is part of Statement. + */ Item_arena(bool init_mem_root); virtual Type type() const; - virtual ~Item_arena(); + virtual ~Item_arena() {}; inline bool is_stmt_prepare() const { return (int)state < (int)PREPARED; } inline bool is_first_stmt_execute() const { return state == PREPARED; } |