~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/warnings_engine_disabled.test

  • Committer: Stewart Smith
  • Date: 2008-11-21 16:06:07 UTC
  • mto: This revision was merged to the branch mainline in revision 593.
  • Revision ID: stewart@flamingspork.com-20081121160607-n6gdlt013spuo54r
remove mysql_frm_type
and fix engines to return correct value from delete_table when table doesn't exist.
(it should be ENOENT).

Also fix up some tests that manipulated frm files by hand. These tests are no longer valid and will need to be rewritten in the not too distant future.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Only run this test with a compiled in but disabled
3
 
# engine
4
 
#
5
 
disable_query_log;
6
 
# Drizzle currently doesn't have a way to query if an engine is disabled
7
 
#--require r/true.require
8
 
#select support = 'Disabled' as `TRUE` from information_schema.engines where engine = 'myisam';
9
 
enable_query_log;
10
 
 
11
 
 
12
 
#
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
 
 
25
 
drop table t1;
26
 
 
27