summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorSergey Glukhov <Sergey.Glukhov@sun.com>2010-05-07 10:38:42 +0500
committerSergey Glukhov <Sergey.Glukhov@sun.com>2010-05-07 10:38:42 +0500
commit278ae9a8d5c4598854419ccc0974f57b7f2b4ddc (patch)
treec6e288ac1b8f0bea9b72d9890c91983295ec3fc1 /sql
parentbd2a517b2381465eb2cf366fb5d4ad08d6770708 (diff)
downloadmariadb-git-278ae9a8d5c4598854419ccc0974f57b7f2b4ddc.tar.gz
Bug#53334 Incorrect result for InnoDB in LEFT JOIN with impossible condition
The fix actually reverts the change introduced by the patch for bug 51494. The fact is that patches for bugs 52177&48419 fix bugs 51194&50575 as well. mysql-test/r/innodb_mysql.result: test case mysql-test/t/innodb_mysql.test: test case sql/sql_select.cc: reverted wrong fix for bug 51494
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_select.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 291432c2bb6..5479c1bdb36 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -2967,8 +2967,7 @@ make_join_statistics(JOIN *join, TABLE_LIST *tables_arg, COND *conds,
s->quick=select->quick;
s->needed_reg=select->needed_reg;
select->quick=0;
- if (records == 0 && s->table->reginfo.impossible_range &&
- (s->table->file->ha_table_flags() & HA_STATS_RECORDS_IS_EXACT))
+ if (records == 0 && s->table->reginfo.impossible_range)
{
/*
Impossible WHERE or ON expression