ddl: CREATE DATABASE testdb_S ; SELECT SLEEP( 2 * { $prng->int(0,100) / 100 } ) ; DROP DATABASE testdb_S /* Sequence end */ | CREATE TABLE bt (pk INT) ENGINE=MyISAM; INSERT INTO $bt VALUES(1); SELECT SLEEP({$prng->int(0,100)/100 }); DROP TABLE $bt | CREATE FUNCTION testdb_S.f13() RETURNS INTEGER BEGIN SELECT 1 FROM testdb_S.t1_temp2_S INTO @my_var; RETURN 1; END; handler: HANDLER bt OPEN handler_a | HANDLER handler_a READ FIRST WHERE testdb_S . f13 () = 13 ; query: ddl | handler; bt: { $bt = $prng->arrayElement(['testdb_S . t1_base1','testdb_S . t1_base2'])};