-- source include/have_ndb.inc

# Directory containing the saved backup files
let $backup_data_dir=$MYSQL_TEST_DIR/suite/ndb/backups;

--exec $NDB_RESTORE --no-defaults -b 1 -n 1 -p 1 -m -r $backup_data_dir/51_dd >> $NDB_TOOLS_OUTPUT
--exec $NDB_RESTORE --no-defaults -e -b 1 -n 2 -p 1 -r $backup_data_dir/51_dd >> $NDB_TOOLS_OUTPUT

# (priviliges differ on embedded and server so replace)
--replace_column 18 #
select * from information_schema.columns
where table_name = "t1";
show create table t1;
source show_attributes.inc;
select * from t1 order by a1;

# Since this is an _old_ table without tablespace
# in .frm but with tablespace in engine -> do extra checks
# that tablespace is still there after ALTER
ALTER TABLE t1 ADD COLUMN c int;
SHOW CREATE TABLE t1;
FLUSH TABLES;
SHOW CREATE TABLE t1;

drop table t1;

ALTER TABLESPACE ts
DROP DATAFILE 'datafile.dat'
ENGINE NDB;

drop tablespace ts
engine ndb;

drop logfile group lg
engine ndb;
