1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-14517 Cleanup for Item::with_subselect and Item::has_subquery()

This commit is contained in:
Alexander Barkov
2017-11-28 06:25:14 +04:00
parent 6aedbf40e0
commit 590400f743
14 changed files with 49 additions and 32 deletions

View File

@ -12810,7 +12810,7 @@ remove_const(JOIN *join,ORDER *first_order, COND *cond,
*simple_order=0; // Must do a temp table to sort
else if (!(order_tables & not_const_tables))
{
if (order->item[0]->has_subquery())
if (order->item[0]->with_subquery())
{
/*
Delay the evaluation of constant ORDER and/or GROUP expressions that