mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / ndb / t / ndb_temporary.test
blob7f6902bf7452145ecb3f7edde4e672f4d9eccc7d
1 -- source include/have_ndb.inc
2 -- source include/not_embedded.inc
4 --disable_warnings
5 DROP TABLE IF EXISTS t1;
6 --enable_warnings
9 # creating a temporary table with engine=ndb should give an error
11 --error ER_ILLEGAL_HA_CREATE_OPTION
12 create temporary table t1 (a int key) engine=ndb;
16 # alter temporary table to engine=ndb should give an error
18 create temporary table t1 (a int key) engine=myisam;
19 --error ER_ILLEGAL_HA_CREATE_OPTION
20 alter table t1 engine=ndb;
21 drop table t1;
25 # if default storage engine=ndb, temporary tables
26 # without explicit engine= should be created as myisam
28 SET SESSION storage_engine=NDBCLUSTER;
29 create table t1 (a int key);
31 # verify that we have a ndb table
32 select engine from information_schema.tables where table_name = 't1';
33 drop table t1;
35 # verify that we have a myisam table
36 create temporary table t1 (a int key);
37 show create table t1;
38 drop table t1;