~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/pbxt/tests/r/basic_index_lookup.result

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SET SESSION storage_engine=pbxt;
 
2
create table t1 (a int primary key);
 
3
insert into t1 values (1),(2),(3),(4),(100),(200);
 
4
explain select * from t1 order by a;
 
5
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
6
1       SIMPLE  t1      index   NULL    PRIMARY 4       NULL    6       Using index; Using filesort
 
7
select * from t1 order by a;
 
8
a
 
9
1
 
10
2
 
11
3
 
12
4
 
13
100
 
14
200
 
15
explain select * from t1 where a>4;
 
16
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
17
1       SIMPLE  t1      range   PRIMARY PRIMARY 4       NULL    1       Using where; Using index
 
18
select * from t1 where a>4;
 
19
a
 
20
100
 
21
200
 
22
explain select * from t1 where a<4;
 
23
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
24
1       SIMPLE  t1      range   PRIMARY PRIMARY 4       NULL    1       Using where; Using index
 
25
select * from t1 where a<4;
 
26
a
 
27
1
 
28
2
 
29
3
 
30
explain select * from t1 where a=4;
 
31
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
32
1       SIMPLE  t1      const   PRIMARY PRIMARY 4       const   1       Using index
 
33
select * from t1 where a=4;
 
34
a
 
35
4
 
36
drop table t1;
 
37
create table t1 (a int primary key, b varchar(100));
 
38
insert into t1 values (1, "hello"), (2, "world"), (3, "Beaker"), (4, "Cricket");
 
39
EXPLAIN SELECT b FROM t1 WHERE a=1;
 
40
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
41
1       SIMPLE  t1      const   PRIMARY PRIMARY 4       const   1       
 
42
SELECT b FROM t1 WHERE a=1;
 
43
b
 
44
hello
 
45
EXPLAIN SELECT b FROM t1 WHERE a=2;
 
46
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
47
1       SIMPLE  t1      const   PRIMARY PRIMARY 4       const   1       
 
48
SELECT b FROM t1 WHERE a=2;
 
49
b
 
50
world
 
51
EXPLAIN SELECT b FROM t1 WHERE a=3;
 
52
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
53
1       SIMPLE  t1      const   PRIMARY PRIMARY 4       const   1       
 
54
SELECT b FROM t1 WHERE a=3;
 
55
b
 
56
Beaker
 
57
EXPLAIN SELECT b FROM t1 WHERE a=4;
 
58
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
59
1       SIMPLE  t1      const   PRIMARY PRIMARY 4       const   1       
 
60
SELECT b FROM t1 WHERE a=4;
 
61
b
 
62
Cricket
 
63
DROP TABLE t1;