mirror of
https://github.com/MariaDB/server.git
synced 2026-05-01 20:55:32 +02:00
fixed current_thread
This commit is contained in:
parent
da8a66aa15
commit
48a64b5703
1 changed files with 7 additions and 7 deletions
|
|
@ -1800,10 +1800,10 @@ expr_expr:
|
|||
| expr NOT IN_SYM '(' expr_list ')'
|
||||
{ $$= new Item_func_not(new Item_func_in($1,*$5)); }
|
||||
| expr IN_SYM in_subselect
|
||||
{ $$= new Item_in_subselect(current_thd, $1, $3); }
|
||||
{ $$= new Item_in_subselect(YYTHD, $1, $3); }
|
||||
| expr NOT IN_SYM in_subselect
|
||||
{
|
||||
$$= new Item_func_not(new Item_in_subselect(current_thd, $1, $4));
|
||||
$$= new Item_func_not(new Item_in_subselect(YYTHD, $1, $4));
|
||||
}
|
||||
| expr BETWEEN_SYM no_and_expr AND expr
|
||||
{ $$= new Item_func_between($1,$3,$5); }
|
||||
|
|
@ -1824,7 +1824,7 @@ expr_expr:
|
|||
| expr comp_op all_or_any in_subselect %prec EQ
|
||||
{
|
||||
Item_allany_subselect *it=
|
||||
new Item_allany_subselect(current_thd, $1, (*$2)($3), $4);
|
||||
new Item_allany_subselect(YYTHD, $1, (*$2)($3), $4);
|
||||
if ($3)
|
||||
$$ = new Item_func_not(it); /* ALL */
|
||||
else
|
||||
|
|
@ -1870,7 +1870,7 @@ no_in_expr:
|
|||
| no_in_expr comp_op all_or_any in_subselect %prec EQ
|
||||
{
|
||||
Item_allany_subselect *it=
|
||||
new Item_allany_subselect(current_thd, $1, (*$2)($3), $4);
|
||||
new Item_allany_subselect(YYTHD, $1, (*$2)($3), $4);
|
||||
if ($3)
|
||||
$$ = new Item_func_not(it); /* ALL */
|
||||
else
|
||||
|
|
@ -1901,10 +1901,10 @@ no_and_expr:
|
|||
| no_and_expr NOT IN_SYM '(' expr_list ')'
|
||||
{ $$= new Item_func_not(new Item_func_in($1,*$5)); }
|
||||
| no_and_expr IN_SYM in_subselect
|
||||
{ $$= new Item_in_subselect(current_thd, $1, $3); }
|
||||
{ $$= new Item_in_subselect(YYTHD, $1, $3); }
|
||||
| no_and_expr NOT IN_SYM in_subselect
|
||||
{
|
||||
$$= new Item_func_not(new Item_in_subselect(current_thd, $1, $4));
|
||||
$$= new Item_func_not(new Item_in_subselect(YYTHD, $1, $4));
|
||||
}
|
||||
| no_and_expr BETWEEN_SYM no_and_expr AND expr
|
||||
{ $$= new Item_func_between($1,$3,$5); }
|
||||
|
|
@ -1924,7 +1924,7 @@ no_and_expr:
|
|||
| no_and_expr comp_op all_or_any in_subselect %prec EQ
|
||||
{
|
||||
Item_allany_subselect *it=
|
||||
new Item_allany_subselect(current_thd, $1, (*$2)($3), $4);
|
||||
new Item_allany_subselect(YYTHD, $1, (*$2)($3), $4);
|
||||
if ($3)
|
||||
$$ = new Item_func_not(it); /* ALL */
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue