~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/innodb/r/innodb_bug30423.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set global innodb_stats_method = default;
 
2
select @@innodb_stats_method;
 
3
@@innodb_stats_method
 
4
nulls_equal
 
5
select count(*) from bug30243_3 where org_id is not NULL;
 
6
count(*)
 
7
20
 
8
select count(*) from bug30243_3 where org_id is NULL;
 
9
count(*)
 
10
16384
 
11
select count(*) from bug30243_2 where org_id is not NULL;
 
12
count(*)
 
13
224
 
14
select count(*) from bug30243_2 where org_id is NULL;
 
15
count(*)
 
16
65536
 
17
select @@innodb_stats_method;
 
18
@@innodb_stats_method
 
19
nulls_equal
 
20
analyze table bug30243_1;
 
21
Table   Op      Msg_type        Msg_text
 
22
test.bug30243_1 analyze status  OK
 
23
analyze table bug30243_2;
 
24
Table   Op      Msg_type        Msg_text
 
25
test.bug30243_2 analyze status  OK
 
26
analyze table bug30243_3;
 
27
Table   Op      Msg_type        Msg_text
 
28
test.bug30243_3 analyze status  OK
 
29
set global innodb_stats_method = "NULL";
 
30
ERROR 42000: Variable 'stats_method' can't be set to the value of 'NULL'
 
31
set global innodb_stats_method = "nulls_ignored";
 
32
select @@innodb_stats_method;
 
33
@@innodb_stats_method
 
34
nulls_ignored
 
35
analyze table bug30243_1;
 
36
Table   Op      Msg_type        Msg_text
 
37
test.bug30243_1 analyze status  OK
 
38
analyze table bug30243_2;
 
39
Table   Op      Msg_type        Msg_text
 
40
test.bug30243_2 analyze status  OK
 
41
analyze table bug30243_3;
 
42
Table   Op      Msg_type        Msg_text
 
43
test.bug30243_3 analyze status  OK
 
44
explain SELECT COUNT(*), 0
 
45
FROM bug30243_1 orgs
 
46
LEFT JOIN bug30243_3 sa_opportunities
 
47
ON orgs.org_id=sa_opportunities.org_id
 
48
LEFT JOIN bug30243_2 contacts
 
49
ON orgs.org_id=contacts.org_id ;
 
50
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
51
1       SIMPLE  orgs    index   NULL    org_id  4       NULL    128     Using index
 
52
1       SIMPLE  sa_opportunities        ref     org_id  org_id  5       test.orgs.org_id        1       Using index
 
53
1       SIMPLE  contacts        ref     contacts$org_id contacts$org_id 5       test.orgs.org_id        1       Using index
 
54
select @@innodb_stats_method;
 
55
@@innodb_stats_method
 
56
nulls_ignored
 
57
set global innodb_stats_method = "nulls_unequal";
 
58
select @@innodb_stats_method;
 
59
@@innodb_stats_method
 
60
nulls_unequal
 
61
analyze table bug30243_1;
 
62
Table   Op      Msg_type        Msg_text
 
63
test.bug30243_1 analyze status  OK
 
64
analyze table bug30243_2;
 
65
Table   Op      Msg_type        Msg_text
 
66
test.bug30243_2 analyze status  OK
 
67
analyze table bug30243_3;
 
68
Table   Op      Msg_type        Msg_text
 
69
test.bug30243_3 analyze status  OK
 
70
explain SELECT COUNT(*), 0
 
71
FROM bug30243_1 orgs
 
72
LEFT JOIN bug30243_3 sa_opportunities
 
73
ON orgs.org_id=sa_opportunities.org_id
 
74
LEFT JOIN bug30243_2 contacts
 
75
ON orgs.org_id=contacts.org_id;
 
76
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
77
1       SIMPLE  orgs    index   NULL    org_id  4       NULL    128     Using index
 
78
1       SIMPLE  sa_opportunities        ref     org_id  org_id  5       test.orgs.org_id        1       Using index
 
79
1       SIMPLE  contacts        ref     contacts$org_id contacts$org_id 5       test.orgs.org_id        1       Using index
 
80
SELECT COUNT(*) FROM table_bug30423 WHERE org_id IS NULL;
 
81
COUNT(*)
 
82
1024
 
83
set global innodb_stats_method = "nulls_unequal";
 
84
analyze table table_bug30423;
 
85
Table   Op      Msg_type        Msg_text
 
86
test.table_bug30423     analyze status  OK
 
87
set global innodb_stats_method = "nulls_ignored";
 
88
analyze table table_bug30423;
 
89
Table   Op      Msg_type        Msg_text
 
90
test.table_bug30423     analyze status  OK
 
91
set global innodb_stats_method = nulls_equal;
 
92
drop table bug30243_2;
 
93
drop table bug30243_1;
 
94
drop table bug30243_3;
 
95
drop table table_bug30423;