~vkolesnikov/pbxt/pbxt-07-diskfull

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/t/mysqlcheck.test

  • 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
# Embedded server doesn't support external clients
 
2
--source include/not_embedded.inc
 
3
 
 
4
# check that CSV engine was compiled in, as the result of the test
 
5
# depends on the presence of the log tables (which are CSV-based).
 
6
--source include/have_csv.inc
 
7
 
 
8
--disable_warnings
 
9
drop database if exists client_test_db;
 
10
--enable_warnings
 
11
 
 
12
DROP SCHEMA test;
 
13
CREATE SCHEMA test;
 
14
use test;
 
15
#
 
16
# Bug #13783  mysqlcheck tries to optimize and analyze information_schema
 
17
#
 
18
--replace_result 'Table is already up to date' OK
 
19
--exec $MYSQL_CHECK --all-databases --analyze --optimize
 
20
--replace_result 'Table is already up to date' OK
 
21
--exec $MYSQL_CHECK --analyze --optimize  --databases test information_schema mysql
 
22
--exec $MYSQL_CHECK --analyze --optimize information_schema schemata
 
23
 
 
24
#
 
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 $MYSQL_CHECK --analyze --optimize --databases test
 
31
--replace_result 'Table is already up to date' OK
 
32
--exec $MYSQL_CHECK --all-in-1 --analyze --optimize --databases test
 
33
drop view v1;
 
34
drop table t1;
 
35
 
 
36
--echo End of 5.0 tests