mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fixed and added test case for bug#5431
+ fix for support of multiple mgmt servers mysql-test/r/ndb_alter_table.result: added test case for bug #5431 mysql-test/t/ndb_alter_table.test: added test case for bug #5431 ndb/src/common/mgmcommon/ConfigRetriever.cpp: fix to make multiple mgmt srvrs work sql/ha_ndbcluster.cc: fixed and added test case for bug#5431
This commit is contained in:
@ -75,9 +75,11 @@ drop table t1;
|
||||
DROP TABLE IF EXISTS t2;
|
||||
create table t2 (a int NOT NULL PRIMARY KEY) engine=myisam;
|
||||
alter table t2 engine=ndbcluster;
|
||||
select count(*) from t2;
|
||||
delete from t2;
|
||||
ERROR HY000: Got temporary error 1217 '1217' from ndbcluster
|
||||
select count(*) from t2 where a+0 > 0;
|
||||
count(*)
|
||||
15001
|
||||
12001
|
||||
truncate table t2;
|
||||
select count(*) from t2;
|
||||
count(*)
|
||||
|
@ -53,7 +53,7 @@ DROP TABLE IF EXISTS t2;
|
||||
--enable_warnings
|
||||
|
||||
create table t2 (a int NOT NULL PRIMARY KEY) engine=myisam;
|
||||
let $1=15001;
|
||||
let $1=12001;
|
||||
disable_query_log;
|
||||
while ($1)
|
||||
{
|
||||
@ -62,7 +62,10 @@ while ($1)
|
||||
}
|
||||
enable_query_log;
|
||||
alter table t2 engine=ndbcluster;
|
||||
select count(*) from t2;
|
||||
--error 1297
|
||||
delete from t2;
|
||||
#to make sure we do a full table scan
|
||||
select count(*) from t2 where a+0 > 0;
|
||||
truncate table t2;
|
||||
select count(*) from t2;
|
||||
drop table t2;
|
||||
|
Reference in New Issue
Block a user