Navigation Menu

Skip to content

Commit

Permalink
test: fix misleading name
Browse files Browse the repository at this point in the history
The table doesn't have many records. So it should be renamed.
  • Loading branch information
kou committed Nov 15, 2013
1 parent 8123914 commit e686733
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
14 changes: 7 additions & 7 deletions mysql-test/mroonga/wrapper/multi_range_read/r/disk_sweep.result
@@ -1,18 +1,18 @@
DROP TABLE IF EXISTS many_records;
DROP TABLE IF EXISTS integers;
SET optimizer_switch='mrr_cost_based=off';
CREATE TABLE many_records (
CREATE TABLE integers (
id INT PRIMARY KEY AUTO_INCREMENT,
value INT,
KEY (value)
) COMMENT='engine "InnoDB"';
INSERT INTO many_records (value) VALUES (0), (1), (2), (3);
EXPLAIN SELECT * FROM many_records
INSERT INTO integers (value) VALUES (0), (1), (2), (3);
EXPLAIN SELECT * FROM integers
WHERE value IN (0, 2);
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE many_records range value value 5 NULL 2 Using where; Using MRR
SELECT * FROM many_records
1 SIMPLE integers range value value 5 NULL 2 Using where; Using MRR
SELECT * FROM integers
WHERE value IN (0, 2);
id value
1 0
3 2
DROP TABLE many_records;
DROP TABLE integers;
13 changes: 7 additions & 6 deletions mysql-test/mroonga/wrapper/multi_range_read/t/disk_sweep.test
@@ -1,4 +1,5 @@
# Copyright(C) 2013 Kenji Maruyama <mmmaru777@gmail.com>
# Copyright(C) 2013 Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand All @@ -19,25 +20,25 @@
--source ../../../include/mroonga/have_mroonga.inc

--disable_warnings
DROP TABLE IF EXISTS many_records;
DROP TABLE IF EXISTS integers;
--enable_warnings

SET optimizer_switch='mrr_cost_based=off';

CREATE TABLE many_records (
CREATE TABLE integers (
id INT PRIMARY KEY AUTO_INCREMENT,
value INT,
KEY (value)
) COMMENT='engine "InnoDB"';

INSERT INTO many_records (value) VALUES (0), (1), (2), (3);
INSERT INTO integers (value) VALUES (0), (1), (2), (3);

EXPLAIN SELECT * FROM many_records
EXPLAIN SELECT * FROM integers
WHERE value IN (0, 2);

SELECT * FROM many_records
SELECT * FROM integers
WHERE value IN (0, 2);

DROP TABLE many_records;
DROP TABLE integers;

--source ../../../include/mroonga/have_mroonga_deinit.inc

0 comments on commit e686733

Please sign in to comment.