diff options
| author | Monty <monty@mariadb.org> | 2019-04-01 19:42:26 +0300 |
|---|---|---|
| committer | Monty <monty@mariadb.org> | 2019-04-01 19:47:24 +0300 |
| commit | 884004502134d881af0bcb59f97a838784ab5bbe (patch) | |
| tree | 499c76eb6ad251e1f62d464f146b614dc4ae393e /mysql-test/include/index_merge1.inc | |
| parent | 48810a00144481b7fec4ce8e23024e9f899626a7 (diff) | |
| download | mariadb-git-884004502134d881af0bcb59f97a838784ab5bbe.tar.gz | |
index_merge_innodb did sometimes give wrong results
Fixed by adding more rows to a table
Other things:
- Speed up index_merge tests 20% by adding begin/commit around loops that
generated rows.
Diffstat (limited to 'mysql-test/include/index_merge1.inc')
| -rw-r--r-- | mysql-test/include/index_merge1.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/include/index_merge1.inc b/mysql-test/include/index_merge1.inc index a5362b5c819..5498a607c3c 100644 --- a/mysql-test/include/index_merge1.inc +++ b/mysql-test/include/index_merge1.inc @@ -37,12 +37,14 @@ insert into t0 values (1),(2),(3),(4),(5),(6),(7),(8); let $1=7; set @d=8; +begin; while ($1) { eval insert into t0 select key1+@d from t0; eval set @d=@d*2; dec $1; } +commit; --enable_query_log alter table t0 add key2 int not null, add index i2(key2); @@ -365,6 +367,7 @@ INSERT INTO t1 VALUES ('foo','bar', 'ZZ'),('fuz','baz', 'ZZ'); --disable_query_log let $1=9; +begin; while ($1) { eval INSERT INTO t1 SELECT * from t1 WHERE cola = 'foo'; @@ -377,6 +380,7 @@ while ($1) eval INSERT INTO t1 SELECT * from t1 WHERE cola <> 'foo'; dec $1; } +commit; --enable_query_log |
