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

A fix for multi-table delete with tables optimised away.

Still not able to make a proper test case as this crashes on files 
where key and data pointers are 4 bytes each. Possibly a proper 
test case would require myisampack.
This commit is contained in:
Sinisa@sinisa.nasamreza.org
2002-06-11 22:45:51 +03:00
parent 2aecdd1a91
commit 8ebadc5d0a
5 changed files with 17 additions and 12 deletions

View File

@ -1960,7 +1960,11 @@ mysql_execute_command(void)
}
auxi->lock_type=walk->lock_type=TL_WRITE;
auxi->table= (TABLE *) walk; // Remember corresponding table
(void)add_item_to_list(new Item_field(auxi->db,auxi->real_name,"*"));
}
if (add_item_to_list(new Item_null()))
{
res = -1;
break;
}
tables->grant.want_privilege=(SELECT_ACL & ~tables->grant.privilege);
thd->proc_info="init";