summaryrefslogtreecommitdiff
path: root/sql/opt_subselect.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-01-18 14:52:38 +0100
committerSergei Golubchik <sergii@pisem.net>2012-01-18 14:52:38 +0100
commitb2974634076cac9e8193963552f2aadcfb6618a1 (patch)
tree45d1a8913af8e18d5fc81b3988b4d8a772fd03bd /sql/opt_subselect.cc
parent69327e2987f7d5a2749860d269cdb4d75b646f24 (diff)
parent796ede64e95a979fa8371bae9568d9dc9ea4f982 (diff)
downloadmariadb-git-b2974634076cac9e8193963552f2aadcfb6618a1.tar.gz
lp:893522 more problems found by PVS Studio
Diffstat (limited to 'sql/opt_subselect.cc')
-rw-r--r--sql/opt_subselect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_subselect.cc b/sql/opt_subselect.cc
index d06480391be..1719b5a53d5 100644
--- a/sql/opt_subselect.cc
+++ b/sql/opt_subselect.cc
@@ -597,7 +597,7 @@ bool subquery_types_allow_materialization(Item_in_subselect *in_subs)
break;
case TIME_RESULT:
if (mysql_type_to_time_type(outer->field_type()) !=
- mysql_type_to_time_type(outer->field_type()))
+ mysql_type_to_time_type(inner->field_type()))
DBUG_RETURN(FALSE);
default:
/* suitable for materialization */