~vkolesnikov/pbxt/pbxt-bug-688404

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/r/analyze.result

  • Committer: paul-mccullagh
  • Date: 2006-10-23 09:14:04 UTC
  • Revision ID: paul-mccullagh-918861e03d351978a9541168a96e58cc826734ee
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
create table t1 (a bigint);
 
2
lock tables t1 write;
 
3
insert into t1 values(0);
 
4
analyze table t1;
 
5
Table   Op      Msg_type        Msg_text
 
6
test.t1 analyze status  OK
 
7
unlock tables;
 
8
check table t1;
 
9
Table   Op      Msg_type        Msg_text
 
10
test.t1 check   status  OK
 
11
drop table t1;
 
12
create table t1 (a bigint);
 
13
insert into t1 values(0);
 
14
lock tables t1 write;
 
15
delete from t1;
 
16
analyze table t1;
 
17
Table   Op      Msg_type        Msg_text
 
18
test.t1 analyze status  OK
 
19
unlock tables;
 
20
check table t1;
 
21
Table   Op      Msg_type        Msg_text
 
22
test.t1 check   status  OK
 
23
drop table t1;
 
24
create table t1 (a bigint);
 
25
insert into t1 values(0);
 
26
analyze table t1;
 
27
Table   Op      Msg_type        Msg_text
 
28
test.t1 analyze status  OK
 
29
check table t1;
 
30
Table   Op      Msg_type        Msg_text
 
31
test.t1 check   status  OK
 
32
drop table t1;
 
33
create table t1 (a mediumtext, fulltext key key1(a)) charset utf8 collate utf8_general_ci engine myisam;
 
34
insert into t1 values ('hello');
 
35
analyze table t1;
 
36
Table   Op      Msg_type        Msg_text
 
37
test.t1 analyze status  OK
 
38
analyze table t1;
 
39
Table   Op      Msg_type        Msg_text
 
40
test.t1 analyze status  Table is already up to date
 
41
drop table t1;
 
42
CREATE TABLE t1 (a int);
 
43
prepare stmt1 from "SELECT * FROM t1 PROCEDURE ANALYSE()";
 
44
execute stmt1;
 
45
Field_name      Min_value       Max_value       Min_length      Max_length      Empties_or_zeros        Nulls   Avg_value_or_avg_length Std     Optimal_fieldtype
 
46
test.t1.a       NULL    NULL    0       0       0       0       0.0     0.0     CHAR(0) NOT NULL
 
47
execute stmt1;
 
48
Field_name      Min_value       Max_value       Min_length      Max_length      Empties_or_zeros        Nulls   Avg_value_or_avg_length Std     Optimal_fieldtype
 
49
test.t1.a       NULL    NULL    0       0       0       0       0.0     0.0     CHAR(0) NOT NULL
 
50
deallocate prepare stmt1;
 
51
drop table t1;
 
52
create temporary table t1(a int, index(a));
 
53
insert into t1 values('1'),('2'),('3'),('4'),('5');
 
54
analyze table t1;
 
55
Table   Op      Msg_type        Msg_text
 
56
test.t1 analyze status  OK
 
57
show index from t1;
 
58
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment
 
59
t1      1       a       1       a       A       NULL    NULL    NULL    YES     BTREE   
 
60
drop table t1;