summaryrefslogtreecommitdiff
path: root/sql/opt_subselect.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-01-12 20:23:02 +0100
committerSergei Golubchik <sergii@pisem.net>2012-01-12 20:23:02 +0100
commit45e25e3643779f4da28c8da2e7e2cdf7a1f92f5c (patch)
tree4067d35aa0dce247cc3567776aa3c8772948d3d8 /sql/opt_subselect.cc
parent296b450d3b58ded0fd4d4972161414c6cc7a80e5 (diff)
parent796ede64e95a979fa8371bae9568d9dc9ea4f982 (diff)
downloadmariadb-git-45e25e3643779f4da28c8da2e7e2cdf7a1f92f5c.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 */