summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-10-13 20:18:37 +0300
committerunknown <monty@mysql.com>2005-10-13 20:18:37 +0300
commit08d459188135c28553b43c57c929b5a2b6ebba64 (patch)
treea7f6f0a949d99ffafb00035024e83f0c62853199 /sql/sql_select.cc
parent53eae4a0d2b4808062d99a1e7a9006a3257df0f5 (diff)
parentc8067ec8489dfc1ee96ba89100a9ef067578ffca (diff)
downloadmariadb-git-08d459188135c28553b43c57c929b5a2b6ebba64.tar.gz
Merge mysql.com:/home/my/mysql-4.1
into mysql.com:/home/my/mysql-5.0 mysql-test/t/select.test: Auto merged sql/item.cc: Auto merged sql/slave.cc: Auto merged sql/sql_select.cc: Auto merged vio/vio.c: Auto merged mysql-test/r/select.result: Merge and change table names a,b,c to t1,t2.t3
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 18b48c33f5b..2d482290909 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -5906,7 +5906,7 @@ eq_ref_table(JOIN *join, ORDER *start_order, JOIN_TAB *tab)
tab->cached_eq_ref_table=1;
if (tab->type == JT_CONST) // We can skip const tables
return (tab->eq_ref_table=1); /* purecov: inspected */
- if (tab->type != JT_EQ_REF)
+ if (tab->type != JT_EQ_REF || tab->table->maybe_null)
return (tab->eq_ref_table=0); // We must use this
Item **ref_item=tab->ref.items;
Item **end=ref_item+tab->ref.key_parts;