~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/warnings_engine_disabled.test

  • Committer: Brian Aker
  • Date: 2009-01-08 22:47:46 UTC
  • mfrom: (642.1.77 drizzle-clean-code)
  • Revision ID: brian@tangent.org-20090108224746-b6l8m91ougralsh9
MergeĀ fromĀ Lee.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# engine
4
4
#
5
5
disable_query_log;
6
 
--require r/true.require
 
6
# Drizzle currently doesn't have a way to query if an engine is disabled
 
7
#--require r/true.require
7
8
#select support = 'Disabled' as `TRUE` from information_schema.engines where engine = 'myisam';
8
9
enable_query_log;
9
10
 
10
11
 
11
12
#
12
 
# Test for handler type, will select MyISAM and print a warning
13
 
# about that - since NDB is disabled
14
 
#
15
 
create table t1 (id int) engine=NDB;
16
 
alter table t1 engine=NDB;
 
13
# Drizzle bug 309847 - change warning to error when selected engine is disabled
 
14
#
 
15
# Test for handler type, will select default storage engine and issue an error
 
16
# since NDB is disabled
 
17
#
 
18
# remove this line after bug 309847 is fixed
 
19
create table t1 (id int) engine=innodb;
 
20
 
 
21
# uncomment after bug 309847 is fixed
 
22
#create table t1 (id int) engine=NDB;
 
23
#alter table t1 engine=NDB;
 
24
 
17
25
drop table t1;
18
26
 
19
27