2005-03-07 10:21:38 +01:00
|
|
|
drop table if exists t1, t2, t3, t4;
|
2006-01-12 19:51:02 +01:00
|
|
|
drop table if exists t1, t2, t3, t4;
|
2005-03-07 10:21:38 +01:00
|
|
|
flush status;
|
|
|
|
create table t1 (a int) engine=ndbcluster;
|
|
|
|
create table t2 (a int) engine=ndbcluster;
|
|
|
|
insert into t1 value (2);
|
|
|
|
insert into t2 value (3);
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
2
|
|
|
|
select * from t2;
|
|
|
|
a
|
|
|
|
3
|
|
|
|
show status like 'handler_discover%';
|
|
|
|
Variable_name Value
|
|
|
|
Handler_discover 0
|
2005-04-27 18:17:41 +02:00
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
2
|
|
|
|
drop table t1;
|
|
|
|
create table t1 (a int) engine=ndbcluster;
|
|
|
|
insert into t1 value (2);
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
2
|
|
|
|
show status like 'handler_discover%';
|
|
|
|
Variable_name Value
|
|
|
|
Handler_discover 0
|
|
|
|
drop table t1;
|
|
|
|
create table t1 (a int) engine=ndbcluster;
|
|
|
|
insert into t1 value (2);
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
2
|
2005-03-07 10:21:38 +01:00
|
|
|
flush status;
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
2
|
|
|
|
update t1 set a=3 where a=2;
|
|
|
|
show status like 'handler_discover%';
|
|
|
|
Variable_name Value
|
2005-04-27 18:17:41 +02:00
|
|
|
Handler_discover 0
|
2005-03-07 10:21:38 +01:00
|
|
|
create table t3 (a int not null primary key, b varchar(22),
|
|
|
|
c int, last_col text) engine=ndb;
|
|
|
|
insert into t3 values(1, 'Hi!', 89, 'Longtext column');
|
|
|
|
create table t4 (pk int primary key, b int) engine=ndb;
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
3
|
|
|
|
select * from t3;
|
|
|
|
a b c last_col
|
|
|
|
1 Hi! 89 Longtext column
|
|
|
|
show tables like 't4';
|
|
|
|
Tables_in_test (t4)
|
|
|
|
t4
|
|
|
|
show tables;
|
|
|
|
Tables_in_test
|
|
|
|
t1
|
|
|
|
t2
|
|
|
|
t3
|
|
|
|
t4
|
|
|
|
drop table t1, t2, t3, t4;
|