mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
merge
This commit is contained in:
commit
8fc01031bf
3 changed files with 44 additions and 1 deletions
|
|
@ -7238,7 +7238,8 @@ 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]->with_subselect)
|
||||
if (order->item[0]->with_subselect &&
|
||||
!(join->select_lex->options & SELECT_DESCRIBE))
|
||||
order->item[0]->val_str(&order->item[0]->str_value);
|
||||
DBUG_PRINT("info",("removing: %s", order->item[0]->full_name()));
|
||||
continue; // skip const item
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue