2007-04-26 13:36:51 +02:00
|
|
|
DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7;
|
|
|
|
drop database if exists mysqltest;
|
|
|
|
CREATE TABLE t1
|
|
|
|
( a INT KEY,
|
|
|
|
b VARCHAR(10) )
|
|
|
|
ROW_FORMAT=FIXED
|
|
|
|
ENGINE=NDB;
|
|
|
|
ERROR HY000: Can't create table 'test.t1' (errno: 138)
|
|
|
|
SHOW WARNINGS;
|
|
|
|
Level Code Message
|
2007-04-26 21:32:02 +02:00
|
|
|
Error 1466 Table storage engine 'ndbcluster' does not support the create option 'Row format FIXED incompatible with variable sized attribute'
|
2007-04-26 13:36:51 +02:00
|
|
|
Error 1005 Can't create table 'test.t1' (errno: 138)
|
|
|
|
CREATE TABLE t1
|
|
|
|
( a INT KEY,
|
|
|
|
b INT )
|
|
|
|
ENGINE=NDB;
|
|
|
|
ForceVarPart: 1
|
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1
|
|
|
|
( a INT KEY,
|
|
|
|
b INT )
|
|
|
|
ROW_FORMAT=DEFAULT
|
|
|
|
ENGINE=NDB;
|
|
|
|
ForceVarPart: 1
|
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1
|
|
|
|
( a INT KEY,
|
|
|
|
b INT )
|
|
|
|
ROW_FORMAT=FIXED
|
|
|
|
ENGINE=NDB;
|
|
|
|
ForceVarPart: 0
|
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1
|
|
|
|
( a INT KEY,
|
|
|
|
b INT )
|
|
|
|
ROW_FORMAT=DYNAMIC
|
|
|
|
ENGINE=NDB;
|
|
|
|
ForceVarPart: 1
|
|
|
|
DROP TABLE t1;
|
2007-05-04 12:19:06 +02:00
|
|
|
create table t1 (a int auto_increment primary key, b varchar(1000)) engine = ndb;
|
|
|
|
insert into t1(b) values ('0123456789');
|
|
|
|
insert into t1(b) select b from t1;
|
|
|
|
insert into t1(b) select b from t1;
|
|
|
|
insert into t1(b) select b from t1;
|
|
|
|
insert into t1(b) select b from t1;
|
|
|
|
insert into t1(b) select b from t1;
|
|
|
|
insert into t1(b) select b from t1;
|
|
|
|
insert into t1(b) select b from t1;
|
|
|
|
insert into t1(b) select b from t1;
|
|
|
|
insert into t1(b) select b from t1;
|
|
|
|
insert into t1(b) select b from t1;
|
|
|
|
select count(*) from t1;
|
|
|
|
count(*)
|
|
|
|
1024
|
|
|
|
begin;
|
|
|
|
update t1 set b = concat(b,b);
|
|
|
|
update t1 set b = concat(b,b);
|
|
|
|
update t1 set b = concat(b,b);
|
|
|
|
update t1 set b = concat(b,b);
|
|
|
|
update t1 set b = concat(b,b);
|
|
|
|
rollback;
|
|
|
|
select count(*),b from t1 group by b;
|
|
|
|
count(*) b
|
|
|
|
1024 0123456789
|
|
|
|
drop table t1;
|