summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2011-06-15 21:48:38 -0700
committerIgor Babaev <igor@askmonty.org>2011-06-15 21:48:38 -0700
commit078b59f5bcb2f4f5d45451a40b798cc92913f7fb (patch)
tree3e1874756e544c0c0c4852ac5a6b3d5fe60b26bd /sql/sql_class.h
parenta9d73e093aa68351fd6776a892012deffa27fb7d (diff)
parentab411f8f1c2e84082623c038eb024c15c58745b5 (diff)
downloadmariadb-git-078b59f5bcb2f4f5d45451a40b798cc92913f7fb.tar.gz
Merge of mwl #106 into 5.3.
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 3535a41c21f..fe9288c0e52 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -1568,6 +1568,9 @@ public:
*/
TABLE_LIST *emb_on_expr_nest;
} thd_marker;
+
+ bool prepare_derived_at_open;
+
#ifndef MYSQL_CLIENT
int binlog_setup_trx_data();
@@ -3060,13 +3063,14 @@ public:
class select_union :public select_result_interceptor
{
-protected:
+public:
TMP_TABLE_PARAM tmp_table_param;
int write_err; /* Error code from the last send_data->ha_write_row call. */
public:
TABLE *table;
+ ha_rows records;
- select_union() :write_err(0),table(0) { tmp_table_param.init(); }
+ select_union() :write_err(0), table(0), records(0) { tmp_table_param.init(); }
int prepare(List<Item> &list, SELECT_LEX_UNIT *u);
int send_data(List<Item> &items);
bool send_eof();
@@ -3074,7 +3078,9 @@ public:
void cleanup();
virtual bool create_result_table(THD *thd, List<Item> *column_types,
bool is_distinct, ulonglong options,
- const char *alias, bool bit_fields_as_long);
+ const char *alias,
+ bool bit_fields_as_long,
+ bool create_table);
TMP_TABLE_PARAM *get_tmp_table_param() { return &tmp_table_param; }
};
@@ -3140,9 +3146,11 @@ protected:
public:
select_materialize_with_stats() { tmp_table_param.init(); }
- virtual bool create_result_table(THD *thd, List<Item> *column_types,
- bool is_distinct, ulonglong options,
- const char *alias, bool bit_fields_as_long);
+ bool create_result_table(THD *thd, List<Item> *column_types,
+ bool is_distinct, ulonglong options,
+ const char *alias,
+ bool bit_fields_as_long,
+ bool create_table);
bool init_result_table(ulonglong select_options);
int send_data(List<Item> &items);
void cleanup();
@@ -3450,7 +3458,7 @@ public:
class multi_update :public select_result_interceptor
{
TABLE_LIST *all_tables; /* query/update command tables */
- TABLE_LIST *leaves; /* list of leves of join table tree */
+ List<TABLE_LIST> *leaves; /* list of leves of join table tree */
TABLE_LIST *update_tables, *table_being_updated;
TABLE **tmp_tables, *main_table, *table_to_update;
TMP_TABLE_PARAM *tmp_table_param;
@@ -3476,7 +3484,7 @@ class multi_update :public select_result_interceptor
bool error_handled;
public:
- multi_update(TABLE_LIST *ut, TABLE_LIST *leaves_list,
+ multi_update(TABLE_LIST *ut, List<TABLE_LIST> *leaves_list,
List<Item> *fields, List<Item> *values,
enum_duplicates handle_duplicates, bool ignore);
~multi_update();