summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2010-01-28 00:32:29 +0300
committerAlexander Nozdrin <alik@sun.com>2010-01-28 00:32:29 +0300
commitf928e0b03d7b235abc42fc3710aae97515203c68 (patch)
tree87afeb670875ae174fc0d56a4066bd140a34b786 /sql/sql_select.cc
parent547269cf380a2ae0decd4990f2de2c5cfad1433a (diff)
parentd2f61748cd0a63d0c9df989d92cb36fc1c7583c5 (diff)
downloadmariadb-git-f928e0b03d7b235abc42fc3710aae97515203c68.tar.gz
Auto-merge from mysql-trunk-merge.
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 1f8bb11967a..5cef405fe53 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -945,6 +945,7 @@ JOIN::optimize()
DBUG_PRINT("info",("Select tables optimized away"));
zero_result_cause= "Select tables optimized away";
tables_list= 0; // All tables resolved
+ const_tables= tables;
/*
Extract all table-independent conditions and replace the WHERE
clause with them. All other conditions were computed by opt_sum_query