--source include/have_ndb.inc --source include/have_debug.inc # # Test behaviour of delete statement execution # when failing to start a transaction, which is # one potential symptom of asynchronously losing # a connection to the cluster # # Related bug : 20116393 # create table t1 (a int primary key, b int) engine=ndb; insert into t1 values (1,1), (2,2), (3,3), (4,4), (5,5), (6,6), (7,7), (8,8); set @save_debug=@@debug; set debug='+d,ndb_fail_start_trans'; # Table scan --error ER_GET_ERRMSG delete from t1; # OI scan --error ER_GET_ERRMSG delete from t1 where a > 5; set debug=@save_debug; drop table t1;