diff options
author | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2008-11-27 19:03:13 +0400 |
---|---|---|
committer | Sergey Glukhov <Sergey.Glukhov@sun.com> | 2008-11-27 19:03:13 +0400 |
commit | 0385618e0575277a026ea2dbe0a15fd33a0bc267 (patch) | |
tree | 8b9aaaacdaf227d3131ae33649215110149358e9 /sql/sql_base.cc | |
parent | f171b7c61e208d48cdc996921aa03b09956e6852 (diff) | |
parent | 1182c0979a5d9acc345c2cba83cac0aa32d42bca (diff) | |
download | mariadb-git-0385618e0575277a026ea2dbe0a15fd33a0bc267.tar.gz |
5.0-bugteam->5.1-bugteam merge
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r-- | sql/sql_base.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc index d7bb571b8c7..6dcd11fac71 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -3095,7 +3095,10 @@ bool reopen_table(TABLE *table) for (key=0 ; key < table->s->keys ; key++) { for (part=0 ; part < table->key_info[key].usable_key_parts ; part++) + { table->key_info[key].key_part[part].field->table= table; + table->key_info[key].key_part[part].field->orig_table= table; + } } if (table->triggers) table->triggers->set_table(table); |