summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorunknown <timour@askmonty.org>2012-11-15 12:54:50 +0200
committerunknown <timour@askmonty.org>2012-11-15 12:54:50 +0200
commitcd2feb659bacda664af7784f714474498eb99b3b (patch)
treed80af7a585e7e13978382762b0c9713f90438104 /sql/item_subselect.cc
parentdbb8d954fdd68299a87b835267bc2879ef9b902e (diff)
downloadmariadb-git-cd2feb659bacda664af7784f714474498eb99b3b.tar.gz
MDEV-3858 Change JOIN_TAB::records_read from ha_rows to double
Currently JOIN_TAB::records_read is of type ha_rows. This is an integer type, which prevents proper selectivity and rows estimates.
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index ab77bb0e59c..1ec1e57e812 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -4553,7 +4553,7 @@ double get_fanout_with_deps(JOIN *join, table_map tset)
!tab->emb_sj_nest &&
tab->records_read != 0)
{
- fanout *= rows2double(tab->records_read);
+ fanout *= tab->records_read;
}
}
return fanout;