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

« back to all changes in this revision

Viewing changes to tests/t/key_diff.test

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-03-18 12:12:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100318121231-k6g1xe6cshbwa0f8
Tags: upstream-2010.03.1347
ImportĀ upstreamĀ versionĀ 2010.03.1347

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Check on condition on different length keys.
 
3
 
 
4
--disable_warnings
 
5
drop table if exists t1;
 
6
--enable_warnings
 
7
 
 
8
CREATE TABLE t1 (
 
9
  a char(5) NOT NULL,
 
10
  b char(4) NOT NULL,
 
11
  KEY (a),
 
12
  KEY (b)
 
13
);
 
14
 
 
15
INSERT INTO t1 VALUES ('A','B'),('b','A'),('C','c'),('D','E'),('a','a');
 
16
 
 
17
select * from t1,t1 as t2;
 
18
explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;
 
19
#select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;
 
20
select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B order by binary t1.a,t2.a;
 
21
select * from t1 where a='a';
 
22
drop table t1;
 
23
 
 
24
# End of 4.1 tests