1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

lp:822760 Wrong result with view + invalid dates

sql/sql_select.cc:
  items' cmp_type()'s must match, not result_type()'s
This commit is contained in:
Sergei Golubchik
2011-08-22 13:38:32 +02:00
parent aab970f5e1
commit 5dc1a2231f
5 changed files with 125 additions and 1 deletions

View File

@ -11627,7 +11627,7 @@ propagate_cond_constants(THD *thd, I_List<COND_CMP> *save_list,
bool left_const= args[0]->const_item() && !args[0]->is_expensive();
bool right_const= args[1]->const_item() && !args[1]->is_expensive();
if (!(left_const && right_const) &&
args[0]->result_type() == args[1]->result_type())
args[0]->cmp_type() == args[1]->cmp_type())
{
if (right_const)
{