mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 07:05:33 +02:00
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-on-4.1 sql/mysql_priv.h: Auto merged sql/sql_base.cc: Auto merged sql/sql_parse.cc: Auto merged sql/table.h: Auto merged
This commit is contained in:
commit
d7c25fe28e
12 changed files with 172 additions and 78 deletions
|
|
@ -4431,11 +4431,10 @@ bool add_to_list(THD *thd, SQL_LIST &list,Item *item,bool asc)
|
|||
ORDER *order;
|
||||
Item **item_ptr;
|
||||
DBUG_ENTER("add_to_list");
|
||||
if (!(order = (ORDER *) thd->alloc(sizeof(ORDER)+sizeof(Item*))))
|
||||
if (!(order = (ORDER *) thd->alloc(sizeof(ORDER))))
|
||||
DBUG_RETURN(1);
|
||||
item_ptr = (Item**) (order+1);
|
||||
*item_ptr=item;
|
||||
order->item= item_ptr;
|
||||
order->item_ptr= item;
|
||||
order->item= &order->item_ptr;
|
||||
order->asc = asc;
|
||||
order->free_me=0;
|
||||
order->used=0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue