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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user