You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.6 KiB

  1. --- r/join.result 2012-01-09 16:13:21.000000000 +0100
  2. +++ r/join.reject 2012-02-10 16:06:39.000000000 +0100
  3. @@ -872,7 +872,7 @@
  4. insert into t3 select * from t2 where a < 800;
  5. explain select * from t2,t3 where t2.a < 200 and t2.b=t3.b;
  6. id select_type table type possible_keys key key_len ref rows Extra
  7. -1 SIMPLE t2 ALL a,b NULL NULL NULL 1000 Using where
  8. +1 SIMPLE t2 range a,b a 5 NULL 1 Using where
  9. 1 SIMPLE t3 ref b b 5 test.t2.b 1
  10. drop table t1, t2, t3;
  11. create table t1 (a int);
  12. @@ -884,7 +884,7 @@
  13. 1 SIMPLE t1 ALL NULL NULL NULL NULL 10
  14. show status like '%cost%';
  15. Variable_name Value
  16. -Last_query_cost 4.016090
  17. +Last_query_cost 4.262158
  18. select 'The cost of accessing t1 (dont care if it changes' '^';
  19. The cost of accessing t1 (dont care if it changes
  20. The cost of accessing t1 (dont care if it changes^
  21. @@ -898,7 +898,7 @@
  22. 1 SIMPLE B eq_ref PRIMARY PRIMARY 4 test.A.b 1
  23. show status like '%cost%';
  24. Variable_name Value
  25. -Last_query_cost 28.016090
  26. +Last_query_cost 28.262158
  27. select '^^: The above should be ~= 20 + cost(select * from t1). Value less than 20 is an error' Z;
  28. Z
  29. ^^: The above should be ~= 20 + cost(select * from t1). Value less than 20 is an error
  30. @@ -1099,7 +1099,7 @@
  31. ON t1.a = t3.a;
  32. id select_type table type possible_keys key key_len ref rows Extra
  33. 1 SIMPLE t1 ALL NULL NULL NULL NULL 3
  34. -1 SIMPLE t3 ref a a 5 test.t1.a 2 Using where; Using index
  35. +1 SIMPLE t3 ref a a 5 test.t1.a 1 Using where; Using index
  36. 1 SIMPLE t4 ALL NULL NULL NULL NULL 0 Using where
  37. 1 SIMPLE t5 ALL NULL NULL NULL NULL 0 Using where
  38. 1 SIMPLE t6 ALL NULL NULL NULL NULL 0 Using where
  39. @@ -1253,10 +1253,12 @@
  40. INSERT INTO t2 VALUES (1,NULL);
  41. EXPLAIN SELECT * FROM t1 JOIN t2 ON t1.v = t2.v ORDER BY 1;
  42. id select_type table type possible_keys key key_len ref rows Extra
  43. -1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
  44. +1 SIMPLE t2 ALL ix2 NULL NULL NULL 1 Using where; Using temporary; Using filesort
  45. +1 SIMPLE t1 ref ix1 ix1 5 test.t2.v 1
  46. EXPLAIN SELECT * FROM t1 JOIN t2 ON t1.v = t2.v;
  47. id select_type table type possible_keys key key_len ref rows Extra
  48. -1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
  49. +1 SIMPLE t2 ALL ix2 NULL NULL NULL 1 Using where
  50. +1 SIMPLE t1 ref ix1 ix1 5 test.t2.v 1
  51. INSERT INTO t1 VALUES (3,'b'),(4,NULL),(5,'c'),(6,'cc'),(7,'d'),
  52. (8,'dd'),(9,'e'),(10,'ee');
  53. INSERT INTO t2 VALUES (2,NULL);
  54. @@ -1268,7 +1270,7 @@
  55. Handler_read_first 0
  56. Handler_read_key 1
  57. Handler_read_last 0
  58. -Handler_read_next 0
  59. +Handler_read_next 2
  60. Handler_read_prev 0
  61. Handler_read_rnd 0
  62. Handler_read_rnd_next 1