mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix for bug#25821 Excessive partition pruning for multi-range index scan in NDB API: don't set distribution key if multi_range
This commit is contained in:
@ -398,3 +398,10 @@ INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
|
||||
UPDATE t1 SET var2 = 9 WHERE var1 IN(1,2,3);
|
||||
DROP TRIGGER testtrigger;
|
||||
DROP TABLE t1, t2;
|
||||
create table t2 (a int, b int, primary key (a), key ab (a,b)) engine=ndbcluster;
|
||||
insert into t2 values (1,1), (10,10);
|
||||
select * from t2 use index (ab) where a in(1,10) order by a;
|
||||
a b
|
||||
1 1
|
||||
10 10
|
||||
drop table t2;
|
||||
|
Reference in New Issue
Block a user