mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +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,
|
group ? group : order,
|
||||||
select_limit,
|
select_limit,
|
||||||
thd->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
|
join.having=having; // Actually a parameter
|
||||||
thd->proc_info="Sending data";
|
thd->proc_info="Sending data";
|
||||||
|
Reference in New Issue
Block a user