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

« back to all changes in this revision

Viewing changes to tests/r/pbxt/key_diff.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
drop table if exists t1;
 
2
CREATE TABLE t1 (
 
3
a char(5) NOT NULL,
 
4
b char(4) NOT NULL,
 
5
KEY (a),
 
6
KEY (b)
 
7
);
 
8
INSERT INTO t1 VALUES ('A','B'),('b','A'),('C','c'),('D','E'),('a','a');
 
9
select * from t1,t1 as t2;
 
10
a       b       a       b
 
11
A       B       A       B
 
12
A       B       C       c
 
13
A       B       D       E
 
14
A       B       a       a
 
15
A       B       b       A
 
16
C       c       A       B
 
17
C       c       C       c
 
18
C       c       D       E
 
19
C       c       a       a
 
20
C       c       b       A
 
21
D       E       A       B
 
22
D       E       C       c
 
23
D       E       D       E
 
24
D       E       a       a
 
25
D       E       b       A
 
26
a       a       A       B
 
27
a       a       C       c
 
28
a       a       D       E
 
29
a       a       a       a
 
30
a       a       b       A
 
31
b       A       A       B
 
32
b       A       C       c
 
33
b       A       D       E
 
34
b       A       a       a
 
35
b       A       b       A
 
36
explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;
 
37
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
38
1       SIMPLE  t1      ALL     a       NULL    NULL    NULL    5       
 
39
1       SIMPLE  t2      ALL     b       NULL    NULL    NULL    5       Using where; Using join buffer
 
40
select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B order by binary t1.a,t2.a;
 
41
a       b       a       b
 
42
A       B       a       a
 
43
A       B       b       A
 
44
C       c       C       c
 
45
a       a       a       a
 
46
a       a       b       A
 
47
b       A       A       B
 
48
select * from t1 where a='a';
 
49
a       b
 
50
A       B
 
51
a       a
 
52
drop table t1;