diff options
author | unknown <evgen@moonbone.local> | 2007-04-21 00:33:56 +0400 |
---|---|---|
committer | unknown <evgen@moonbone.local> | 2007-04-21 00:33:56 +0400 |
commit | efe42b3857359d904786caff45d3cc226858935f (patch) | |
tree | 749783226569f93fbed5d272f9f7ced5a5859dfd /sql/sql_lex.h | |
parent | cc76701e8f47ca52ca209150f49ba665a215c1d0 (diff) | |
parent | 323a2135392ce64957d3a4f46599d01375bf4c6c (diff) | |
download | mariadb-git-efe42b3857359d904786caff45d3cc226858935f.tar.gz |
Merge moonbone.local:/mnt/gentoo64/work/bk-trees/mysql-5.0-opt
into moonbone.local:/mnt/gentoo64/work/bk-trees/mysql-5.1-opt
mysql-test/r/func_str.result:
Auto merged
mysql-test/r/key.result:
Auto merged
mysql-test/r/row.result:
Auto merged
mysql-test/r/subselect.result:
Auto merged
mysql-test/r/subselect3.result:
Auto merged
mysql-test/r/view.result:
Auto merged
mysql-test/t/func_str.test:
Auto merged
mysql-test/t/key.test:
Auto merged
sql/item_cmpfunc.cc:
Auto merged
sql/item_cmpfunc.h:
Auto merged
sql/item_strfunc.h:
Auto merged
sql/item_subselect.h:
Auto merged
sql/sql_select.cc:
Auto merged
sql/sql_show.cc:
Auto merged
sql/sql_view.cc:
Auto merged
mysql-test/t/view.test:
Manually merged
sql/sql_lex.h:
Manually merged
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index 850586c6098..1175776ffd3 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -541,6 +541,7 @@ public: bool change_result(select_subselect *result, select_subselect *old_result); void set_limit(st_select_lex *values); void set_thd(THD *thd_arg) { thd= thd_arg; } + inline bool is_union (); friend void lex_start(THD *thd, const char *buf, uint length); friend int subselect_union_engine::exec(); @@ -795,6 +796,13 @@ private: }; typedef class st_select_lex SELECT_LEX; + +inline bool st_select_lex_unit::is_union () +{ + return first_select()->next_select() && + first_select()->next_select()->linkage == UNION_TYPE; +} + #define ALTER_ADD_COLUMN (1L << 0) #define ALTER_DROP_COLUMN (1L << 1) #define ALTER_CHANGE_COLUMN (1L << 2) |