config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/innodb_gis/r/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/innodb_gis/r/rtree_concurrent_srch_2.result

CREATE TABLE g (
id INT PRIMARY KEY,
p GEOMETRY NOT NULL,
SPATIAL KEY p_idx(p)
) ENGINE=InnoDB;
create procedure populate_g(IN `rows` INT)
begin
declare i int default 1;
while (i <= `rows`) DO
insert into test.g (id, p) values (i, POINT(i, i));
set i = i + 1;
end while;
end|
call populate_g(650);
start transaction;
select id from g WHERE MBRContains(ST_GeomFromText('Polygon((100 0,100 5,105
5,105 0,100 0))'),p) for update;
id
set innodb_lock_wait_timeout = 1;
set transaction isolation level serializable;
insert into g values(1103, POINT(100, 1));
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
start transaction;
select id from g WHERE MBRContains(ST_GeomFromText('Polygon((100 0,100 5,105
5,105 0,100 0))'),p) for update;
id
commit;
set innodb_lock_wait_timeout = 1;
set transaction isolation level serializable;
insert into g values(1103, POINT(100, 1));
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
commit;
DROP TABLE g;
DROP PROCEDURE populate_g;
set innodb_lock_wait_timeout = default;

Man Man