diff options
author | unknown <monty@mysql.com> | 2003-11-28 15:55:43 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2003-11-28 15:55:43 +0200 |
commit | 6cb23b94ccbcf8ddafeb88f8de028d1086803faa (patch) | |
tree | 93fd46c73f839b74713646337e22a966326fae92 /mysql-test/r/range.result | |
parent | aa780843961c3f60028d62da7728bdb907b1f6ee (diff) | |
parent | 15763ed5aa4ef6ef19f2f21a73f9b0b0100553db (diff) | |
download | mariadb-git-6cb23b94ccbcf8ddafeb88f8de028d1086803faa.tar.gz |
merge with 4.0 to get fix for range bug
libmysql/libmysql.c:
Auto merged
sql/opt_range.cc:
Auto merged
Diffstat (limited to 'mysql-test/r/range.result')
-rw-r--r-- | mysql-test/r/range.result | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/range.result b/mysql-test/r/range.result index 1b66f442a9a..0c8f2cb5323 100644 --- a/mysql-test/r/range.result +++ b/mysql-test/r/range.result @@ -279,6 +279,16 @@ id select_type table type possible_keys key key_len ref rows Extra SELECT * FROM t1 WHERE a IN(1,2) AND b=5; a b DROP TABLE t1; +CREATE TABLE t1 (a int, b int, c int, INDEX (c,a,b)); +INSERT INTO t1 VALUES (1,0,0),(1,0,0),(1,0,0); +INSERT INTO t1 VALUES (0,1,0),(0,1,0),(0,1,0); +SELECT COUNT(*) FROM t1 WHERE (c=0 and a=1) or (c=0 and b=1); +COUNT(*) +6 +SELECT COUNT(*) FROM t1 WHERE (c=0 and b=1) or (c=0 and a=1); +COUNT(*) +6 +DROP TABLE t1; create table t1 (id int(10) primary key); insert into t1 values (1),(2),(3),(4),(5),(6),(7),(8),(9); select id from t1 where id in (2,5,9) ; |