| 1 |
-- source include/have_ndb.inc |
| 2 |
|
| 3 |
# Test is using error insert, check that binaries support it |
| 4 |
-- source suite/ndb/t/have_ndb_error_insert.inc |
| 5 |
|
| 6 |
# Use small LoadFactors to force sparse hash table |
| 7 |
--exec $NDB_MGM -e "all error 3003" >> $NDB_TOOLS_OUTPUT |
| 8 |
|
| 9 |
set max_heap_table_size = 286720000; |
| 10 |
create table t1 (a int key) engine=memory; |
| 11 |
load data local infile 'suite/ndb/data/table_data10000.dat' into table t1 columns terminated by ' ' (a, @col2); |
| 12 |
let $i = 9; |
| 13 |
let $b = 10000; |
| 14 |
while ($i) |
| 15 |
{ |
| 16 |
--eval insert into t1 select a + $b from t1; |
| 17 |
let $b = $b * 2; |
| 18 |
dec $i; |
| 19 |
} |
| 20 |
select count(*) from t1; |
| 21 |
alter table t1 engine=ndbcluster comment='NDB_TABLE=NOLOGGING' partition by key() partitions 1; |
| 22 |
--exec $NDB_MGM -e "all report memory" >> $NDB_TOOLS_OUTPUT |
| 23 |
alter table t1 engine=memory; |
| 24 |
select count(*) from t1; |
| 25 |
drop table t1; |
| 26 |
--remove_file $NDB_TOOLS_OUTPUT |