mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fix for a bug which results in "Unknown Error".
Query should actually return empty result set, but currently can't, as it attempts to store NULL in NOT NULL field, because that is a match made by self join conditions.
This commit is contained in:
@ -969,7 +969,14 @@ mysql_select(THD *thd,TABLE_LIST *tables,List<Item> &fields,COND *conds,
|
||||
group ? group : order,
|
||||
select_limit,
|
||||
thd->select_limit))
|
||||
goto err; /* purecov: inspected */
|
||||
{
|
||||
if (!join.join_tab[join.const_tables].select->quick)
|
||||
error= return_zero_rows(&join, result, tables, fields,
|
||||
0, select_options,
|
||||
"Impossible WHERE noticed after reading const tables",
|
||||
having,procedure);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
join.having=having; // Actually a parameter
|
||||
thd->proc_info="Sending data";
|
||||
|
Reference in New Issue
Block a user