mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02: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. sql/sql_lex.cc: Just in case ...
This commit is contained in:
parent
70aa7424c4
commit
bf95234b05
5 changed files with 17 additions and 12 deletions
|
|
@ -66,7 +66,7 @@ select count(*) from t3 where id3;
|
|||
count(*)
|
||||
0
|
||||
drop table t1,t2,t3;
|
||||
create table t1(id1 int not null auto_increment primary key, t varchar(100));
|
||||
create table t2(id2 int not null, t varchar(100), index(id2));
|
||||
delete t1, t2 from t2,t1 where t1.id1 = t2.id2 and t1.id1 > 100;
|
||||
create table t1(id1 int not null primary key, t varchar(100)) pack_keys = 1;
|
||||
create table t2(id2 int not null, t varchar(100), index(id2)) pack_keys = 1;
|
||||
delete t1 from t1,t2 where t1.id1 = t2.id2 and t1.id1 > 500;
|
||||
drop table t1,t2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue