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

Prevent needless rexecuting empty subselects

This commit is contained in:
bell@sanja.is.com.ua
2002-06-06 16:28:22 +03:00
parent 27a2dac9fc
commit ab56d9b51b
3 changed files with 7 additions and 4 deletions

View File

@ -785,7 +785,7 @@ select_subselect::select_subselect(Item_subselect *item)
bool select_subselect::send_data(List<Item> &items)
{
DBUG_ENTER("select_subselect::send_data");
if (item->executed){
if (item->assigned){
my_printf_error(ER_SUBSELECT_NO_1_ROW, ER(ER_SUBSELECT_NO_1_ROW), MYF(0));
DBUG_RETURN(1);
}
@ -812,6 +812,6 @@ bool select_subselect::send_data(List<Item> &items)
item->int_value= val_item->val_int();
item->res_type= val_item->result_type();
}
item->executed= 1;
item->assigned= 1;
DBUG_RETURN(0);
}