mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / ndb / r / ndb_row_format.result
blobeea0692dd92e0f4e105ac3045c17364e16b23aff
1 DROP TABLE IF EXISTS t1,t2,t3,t4,t5,t6,t7;
2 drop database if exists mysqltest;
3 CREATE TABLE t1
4 ( a INT KEY,
5 b VARCHAR(10) )
6 ROW_FORMAT=FIXED
7 ENGINE=NDB;
8 ERROR HY000: Can't create table 'test.t1' (errno: 138)
9 SHOW WARNINGS;
10 Level   Code    Message
11 Error   1478    Table storage engine 'ndbcluster' does not support the create option 'Row format FIXED incompatible with variable sized attribute'
12 Error   1005    Can't create table 'test.t1' (errno: 138)
13 CREATE TABLE t1
14 ( a INT KEY,
15 b INT )
16 ENGINE=NDB;
17 ForceVarPart: 1
18 DROP TABLE t1;
19 CREATE TABLE t1
20 ( a INT KEY,
21 b INT )
22 ROW_FORMAT=DEFAULT
23 ENGINE=NDB;
24 ForceVarPart: 1
25 DROP TABLE t1;
26 CREATE TABLE t1
27 ( a INT KEY,
28 b INT )
29 ROW_FORMAT=FIXED
30 ENGINE=NDB;
31 ForceVarPart: 0
32 DROP TABLE t1;
33 CREATE TABLE t1
34 ( a INT KEY,
35 b INT )
36 ROW_FORMAT=DYNAMIC
37 ENGINE=NDB;
38 ForceVarPart: 1
39 DROP TABLE t1;
40 create table t1 (a int auto_increment primary key, b varchar(1000)) engine = ndb;
41 insert into t1(b) values ('0123456789');
42 insert into t1(b) select b from t1;
43 insert into t1(b) select b from t1;
44 insert into t1(b) select b from t1;
45 insert into t1(b) select b from t1;
46 insert into t1(b) select b from t1;
47 insert into t1(b) select b from t1;
48 insert into t1(b) select b from t1;
49 insert into t1(b) select b from t1;
50 insert into t1(b) select b from t1;
51 insert into t1(b) select b from t1;
52 select count(*) from t1;
53 count(*)
54 1024
55 begin;
56 update t1 set b = concat(b,b);
57 update t1 set b = concat(b,b);
58 update t1 set b = concat(b,b);
59 update t1 set b = concat(b,b);
60 update t1 set b = concat(b,b);
61 rollback;
62 select count(*),b from t1 group by b;
63 count(*)        b
64 1024    0123456789
65 drop table t1;