~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to mysql-test/r/derived.result

Merge with 4.0.3
Some simple optimzations, more comments and indentation changes.
Add ` around database in 'use database' in binary log.
Moved max_error_count and max_warning_count to variables struct.
Removed SHOW_WARNS_COUNT and SHOW_ERRORS_COUNT calls.
Changed string functions to use character set of first string argument as default return characterset
(Each string function can change the above assumption if needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists t1,t2,t3;
 
2
CREATE TABLE t1 (a int not null, b char (10) not null);
 
3
insert into t1 values(1,'a'),(2,'b'),(3,'c'),(3,'c');
 
4
CREATE TABLE t2 (a int not null, b char (10) not null);
 
5
insert into t2 values (3,'c'),(4,'d'),(5,'f'),(6,'e');
 
6
select t1.a,t3.y from t1,(select a as y from t2  where b='c') as t3  where t1.a = t3.y;
 
7
a       y
 
8
3       3
 
9
3       3
 
10
select t1.a,t3.a from t1,(select * from t2  where b='c') as t3  where t1.a = t3.a;
 
11
a       a
 
12
3       3
 
13
3       3
 
14
CREATE TABLE t3 (a int not null, b char (10) not null);
 
15
insert into t3 values (3,'f'),(4,'y'),(5,'z'),(6,'c');
 
16
select t1.a,t4.y from t1,(select t2.a as y from t2,(select t3.b from t3 where t3.a>3) as t5  where t2.b=t5.b) as t4  where t1.a = t4.y;
 
17
a       y
 
18
3       3
 
19
3       3
 
20
drop table if exists  t1.t2,t3;