~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/row.result

Merged in recent devel tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
348
348
1       SIMPLE  t2      ref     PRIMARY PRIMARY 4       test.t1.a       1       Using index
349
349
SELECT * FROM t1,t2 WHERE t1.a=1 and t1.b=t2.b;
350
350
a       b       a       b       c
 
351
1       1       1       1       1
351
352
1       1       1       1       2
 
353
1       2       1       2       1
 
354
1       2       1       2       2
 
355
1       1       3       1       1
352
356
1       1       3       1       3
353
 
1       2       1       2       2
354
 
1       1       1       1       1
355
 
1       1       3       1       1
356
 
1       2       1       2       1
357
357
SELECT * FROM t1,t2 WHERE (t1.a,t1.b)=(t2.a,2);
358
358
a       b       a       b       c
359
359
1       2       1       1       1
382
382
Note    1003    select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t2`.`c` AS `c` from `test`.`t1` join `test`.`t2` where (((`test`.`t1`.`a` - 1) = (`test`.`t2`.`a` - 1)) and (`test`.`t1`.`b` = (`test`.`t2`.`b` + 1)))
383
383
SELECT * FROM t1,t2 WHERE (t1.a-1,t1.b)=(t2.a-1,t2.b+1);
384
384
a       b       a       b       c
 
385
1       2       1       1       1
385
386
1       2       1       1       2
 
387
3       2       3       1       1
386
388
3       2       3       1       3
387
 
1       2       1       1       1
388
 
3       2       3       1       1
389
389
EXPLAIN SELECT * FROM t2 WHERE a=3 AND b=2;
390
390
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
391
391
1       SIMPLE  t2      ref     PRIMARY PRIMARY 8       const,const     1       Using index