summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-05-08 23:14:40 +0300
committerunknown <bell@sanja.is.com.ua>2002-05-08 23:14:40 +0300
commit6ff06df2333d90021cb10a27f9285586908ee542 (patch)
tree23c58e5b8137b1a19b2371ec5ab4dadf69329e50 /sql/sql_select.h
parent2c62a868a60058a8664dcf3e45cdd86b41635ddd (diff)
downloadmariadb-git-6ff06df2333d90021cb10a27f9285586908ee542.tar.gz
new SELECT_LEX structures used for storing global ORDER BY, global LIMIT & limit counters
mysql-test/r/union.result: correct result of union explain command
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index befa1efde53..5466974f587 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -173,6 +173,8 @@ class JOIN {
select_result *result;
TMP_TABLE_PARAM tmp_table_param;
MYSQL_LOCK *lock;
+ // unit structure (with global parameters) for this select
+ SELECT_LEX_UNIT *unit;
};
@@ -187,7 +189,8 @@ void TEST_join(JOIN *join);
bool store_val_in_field(Field *field,Item *val);
TABLE *create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
ORDER *group, bool distinct, bool save_sum_fields,
- bool allow_distinct_limit, ulong select_options);
+ bool allow_distinct_limit, ulong select_options,
+ SELECT_LEX_UNIT *unit);
void free_tmp_table(THD *thd, TABLE *entry);
void count_field_types(TMP_TABLE_PARAM *param, List<Item> &fields,
bool reset_with_sum_func);