mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
Fixed creating limit for exists subquery.
This commit is contained in:
parent
7bdbdb05ce
commit
5db8b5113b
1 changed files with 2 additions and 1 deletions
|
@ -1259,7 +1259,8 @@ void Item_exists_subselect::fix_length_and_dec()
|
|||
We need only 1 row to determine existence (i.e. any EXISTS that is not
|
||||
an IN always requires LIMIT 1)
|
||||
*/
|
||||
unit->global_parameters->select_limit= new Item_int((int32) 1);
|
||||
thd->change_item_tree(&unit->global_parameters->select_limit,
|
||||
new Item_int((int32) 1));
|
||||
DBUG_PRINT("info", ("Set limit to 1"));
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue