diff options
author | evgen@moonbone.local <> | 2007-03-11 00:26:45 +0300 |
---|---|---|
committer | evgen@moonbone.local <> | 2007-03-11 00:26:45 +0300 |
commit | 11d37efa5e117c5f64870a00ec56b438b7e4dca9 (patch) | |
tree | 5688018d1c55ec2c3e437747634fd4fe63bd4f4e /sql/sql_union.cc | |
parent | eca8b1a62d6adcf626e1620e6a988b1077f49ca7 (diff) | |
parent | f3e56b5adb2208f5db63c8821b9bf44f7568b4af (diff) | |
download | mariadb-git-11d37efa5e117c5f64870a00ec56b438b7e4dca9.tar.gz |
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into moonbone.local:/mnt/gentoo64/work/bk-trees/mysql-5.1-opt
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r-- | sql/sql_union.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc index f020168d742..c3635e24407 100644 --- a/sql/sql_union.cc +++ b/sql/sql_union.cc @@ -623,6 +623,12 @@ bool st_select_lex_unit::cleanup() join->tables= 0; } error|= fake_select_lex->cleanup(); + if (fake_select_lex->order_list.elements) + { + ORDER *ord; + for (ord= (ORDER*)fake_select_lex->order_list.first; ord; ord= ord->next) + (*ord->item)->cleanup(); + } } DBUG_RETURN(error); |