diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2011-07-20 11:56:28 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2011-07-20 11:56:28 +0400 |
commit | 36be492dc00c6aeb1eed4e871c5b10383184f559 (patch) | |
tree | c947706340199d29459867a569c274e328a8fe42 /sql/opt_subselect.cc | |
parent | 837c6722ed025c566b688a1d1ecb2bd7d0b8af7c (diff) | |
download | mariadb-git-36be492dc00c6aeb1eed4e871c5b10383184f559.tar.gz |
Fix a compile error, and most likely a bug: jtb_table_no holds table number, not table->map.
Diffstat (limited to 'sql/opt_subselect.cc')
-rw-r--r-- | sql/opt_subselect.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_subselect.cc b/sql/opt_subselect.cc index ae2c8983623..6f8814468b4 100644 --- a/sql/opt_subselect.cc +++ b/sql/opt_subselect.cc @@ -1227,7 +1227,7 @@ static bool convert_subq_to_sj(JOIN *parent_join, Item_in_subselect *subq_pred) tl->table->tablenr= table_no; tl->table->map= ((table_map)1) << table_no; if (tl->is_jtbm()) - tl->jtbm_table_no= tl->table->map; + tl->jtbm_table_no= tl->table->tablenr; SELECT_LEX *old_sl= tl->select_lex; tl->select_lex= parent_join->select_lex; for (TABLE_LIST *emb= tl->embedding; |