~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/key_diff.test

  • Committer: Jay Pipes
  • Date: 2008-09-11 16:03:22 UTC
  • mto: (383.5.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 386.
  • Revision ID: jay@mysql.com-20080911160322-vrl0k1djo6q6ytv1
Removed SQL_MODE variances from comment_table.test and ensured correct error thrown when a comment that is too long was input.  After moving to proto buffer definition for table, the 2048 length will go away.

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
 
--sorted_result
18
 
select * from t1,t1 as t2;
19
 
explain 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;
21
 
select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B order by binary t1.a,t2.a;
22
 
select * from t1 where a='a';
23
 
drop table t1;
24
 
 
25
 
# End of 4.1 tests