diff options
author | gkodinov@dl145s.mysql.com <> | 2006-10-19 14:37:49 +0200 |
---|---|---|
committer | gkodinov@dl145s.mysql.com <> | 2006-10-19 14:37:49 +0200 |
commit | 892495acaffb5a773b72fce40d7d98f27ee6a0ae (patch) | |
tree | c3a1127047a1868f79176592df1bdfc289fd4abf /sql/table.cc | |
parent | 9c0b8726621b38ec4880fb225315f141bc978372 (diff) | |
parent | 3a4a9521d84292f8df21cdd484ac10c62087bb7b (diff) | |
download | mariadb-git-892495acaffb5a773b72fce40d7d98f27ee6a0ae.tar.gz |
Merge dl145s.mysql.com:/data/bk/team_tree_merge/mysql-5.0
into dl145s.mysql.com:/data/bk/team_tree_merge/MERGE/mysql-5.0-opt
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/table.cc b/sql/table.cc index 61dce3e0c80..3a76ba0cc1a 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -1977,12 +1977,13 @@ bool st_table_list::prep_where(THD *thd, Item **conds, this expression will not be moved to WHERE condition (i.e. will be clean correctly for PS/SP) */ - tbl->on_expr= and_conds(tbl->on_expr, where); + tbl->on_expr= and_conds(tbl->on_expr, + where->copy_andor_structure(thd)); break; } } if (tbl == 0) - *conds= and_conds(*conds, where); + *conds= and_conds(*conds, where->copy_andor_structure(thd)); if (arena) thd->restore_active_arena(arena, &backup); where_processed= TRUE; |