~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/analyze.result

  • Committer: Monty Taylor
  • Date: 2010-10-15 17:18:02 UTC
  • mto: (1859.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1860.
  • Revision ID: mordred@inaugust.com-20101015171802-qhk6zyfhrkvprr1n
Added support for registering regular sys_var instances via module::Context.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
create table t1 (a bigint);
2
 
lock tables t1 write;
3
2
insert into t1 values(0);
4
3
analyze table t1;
5
4
Table   Op      Msg_type        Msg_text
6
5
test.t1 analyze status  OK
7
 
unlock tables;
8
6
check table t1;
9
7
Table   Op      Msg_type        Msg_text
10
8
test.t1 check   status  OK
11
9
drop table t1;
12
10
create table t1 (a bigint);
13
11
insert into t1 values(0);
14
 
lock tables t1 write;
15
12
delete from t1;
16
13
analyze table t1;
17
14
Table   Op      Msg_type        Msg_text
18
15
test.t1 analyze status  OK
19
 
unlock tables;
20
16
check table t1;
21
17
Table   Op      Msg_type        Msg_text
22
18
test.t1 check   status  OK
30
26
Table   Op      Msg_type        Msg_text
31
27
test.t1 check   status  OK
32
28
drop table t1;
33
 
create table t1 (a mediumtext, fulltext key key1(a)) charset utf8 collate utf8_general_ci engine myisam;
 
29
create TEMPORARY table t1 (a varchar(10), key key1(a)) collate=utf8_general_ci engine=myisam;
34
30
insert into t1 values ('hello');
35
31
analyze table t1;
36
32
Table   Op      Msg_type        Msg_text
37
 
test.t1 analyze status  OK
 
33
test.t1 analyze note    The storage engine for the table doesn't support analyze
38
34
analyze table t1;
39
35
Table   Op      Msg_type        Msg_text
40
 
test.t1 analyze status  Table is already up to date
 
36
test.t1 analyze note    The storage engine for the table doesn't support analyze
41
37
drop table t1;
42
38
create temporary table t1(a int, index(a));
43
39
insert into t1 values('1'),('2'),('3'),('4'),('5');
45
41
Table   Op      Msg_type        Msg_text
46
42
test.t1 analyze status  OK
47
43
show index from t1;
48
 
Table   Non_unique      Key_name        Seq_in_index    Column_name     Collation       Cardinality     Sub_part        Packed  Null    Index_type      Comment Index_Comment
49
 
t1      1       a       1       a       A       5       NULL    NULL    YES     BTREE           
 
44
Table   Unique  Key_name        Seq_in_index    Column_name
 
45
t1      NO      a       1       a
50
46
drop table t1;
51
47
End of 4.1 tests
52
 
create table t1(a int);
53
 
analyze table t1 extended;
54
 
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'extended' at line 1
55
 
optimize table t1 extended;
56
 
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'extended' at line 1
57
 
drop table t1;
58
48
End of 5.0 tests