~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/drizzlecheck.test

  • Committer: Jay Pipes
  • Date: 2008-12-21 17:27:41 UTC
  • mto: This revision was merged to the branch mainline in revision 729.
  • Revision ID: jpipes@serialcoder-20081221172741-4qft03chlb2ysh3y
Fixes mysqlcheck.test.  Removes views from test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
--disable_warnings
10
10
DROP TABLE IF EXISTS t1, `t``1`, `t 1`;
11
 
drop view if exists v1;
12
11
drop database if exists client_test_db;
13
12
--enable_warnings
14
13
 
18
17
--replace_result 'Table is already up to date' OK
19
18
--exec $DRIZZLE_CHECK --all-databases --analyze --optimize
20
19
--replace_result 'Table is already up to date' OK
21
 
--exec $DRIZZLE_CHECK --analyze --optimize  --databases test information_schema mysql
 
20
--exec $DRIZZLE_CHECK --analyze --optimize  --databases test information_schema
22
21
--exec $DRIZZLE_CHECK --analyze --optimize information_schema schemata
23
22
 
24
23
#
25
 
# Bug #16502: mysqlcheck tries to check views
26
 
#
27
 
create table t1 (a int);
28
 
create view v1 as select * from t1;
29
 
--replace_result 'Table is already up to date' OK
30
 
--exec $DRIZZLE_CHECK --analyze --optimize --databases test
31
 
--replace_result 'Table is already up to date' OK
32
 
--exec $DRIZZLE_CHECK --all-in-1 --analyze --optimize --databases test
33
 
drop view v1;
34
 
drop table t1;
35
 
 
36
 
#
37
24
# Bug #30654: mysqlcheck fails during upgrade of tables whose names include backticks
38
25
#
39
26
create table `t``1`(a int);
47
34
#
48
35
create database d_bug25347;
49
36
use d_bug25347;
50
 
create table t_bug25347 (a int);
51
 
create view v_bug25347 as select * from t_bug25347;
 
37
create table t_bug25347 (a int) engine=MyISAM;
52
38
insert into t_bug25347 values (1),(2),(3);
53
39
flush tables;
54
40
--echo removing and creating
61
47
--exec $DRIZZLE_CHECK --repair --use-frm --databases d_bug25347
62
48
insert into t_bug25347 values (7),(8),(9);
63
49
select * from t_bug25347;
64
 
select * from v_bug25347;
65
 
drop view v_bug25347;
66
50
drop table t_bug25347;
67
51
drop database d_bug25347;
68
52
use test;
69
53
 
70
54
--echo End of 5.0 tests
71
 
 
72
 
#
73
 
# Bug #30679: 5.1 name encoding not performed for views during upgrade
74
 
#
75
 
create table t1(a int);
76
 
create view v1 as select * from t1;
77
 
show tables;
78
 
--copy_file $MYSQLTEST_VARDIR/master-data/test/v1.frm $MYSQLTEST_VARDIR/master-data/test/v-1.frm
79
 
show tables;
80
 
--exec $DRIZZLE_CHECK --check-upgrade --fix-table-names --databases test
81
 
show tables;
82
 
drop view v1, `v-1`;
83
 
drop table t1;