1 -- source include/have_ndb.inc
2 -- source include/not_embedded.inc
5 DROP TABLE IF EXISTS t1,t2;
6 drop database if exists mysqltest;
14 # Create a normal table with primary key
17 pk1 INT NOT NULL PRIMARY KEY,
24 INSERT INTO t1 VALUES (0,0,0,"zero"),(1,1,1,"one"),(2,2,2,"two");
25 SELECT * FROM t1 WHERE attr1 = 1;
26 alter table t1 rename t2;
27 SELECT * FROM t2 WHERE attr1 = 1;
29 create database ndbtest;
30 alter table t2 rename ndbtest.t2;
31 SELECT * FROM ndbtest.t2 WHERE attr1 = 1;
33 drop table ndbtest.t2;
34 drop database ndbtest;