⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
mysql
/
mysql-test
/
suite
/
innodb_gis
/
t
/
View File Name :
rtree_concurrent_srch_2.test
# This test case will test concurrent search on R-tree. # Not supported in embedded --source include/not_embedded.inc --source include/have_innodb.inc --source include/have_debug.inc --source include/have_innodb_16k.inc CREATE TABLE g ( id INT PRIMARY KEY, p GEOMETRY NOT NULL, SPATIAL KEY p_idx(p) ) ENGINE=InnoDB; delimiter |; 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| delimiter ;| 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; connect (a,localhost,root,,); connection a; set innodb_lock_wait_timeout = 1; set transaction isolation level serializable; --error ER_LOCK_WAIT_TIMEOUT insert into g values(1103, POINT(100, 1)); connect (b,localhost,root,,); connection b; start transaction; select id from g WHERE MBRContains(ST_GeomFromText('Polygon((100 0,100 5,105 5,105 0,100 0))'),p) for update; connection default; commit; connection a; set innodb_lock_wait_timeout = 1; set transaction isolation level serializable; --error ER_LOCK_WAIT_TIMEOUT insert into g values(1103, POINT(100, 1)); disconnect a; --source include/wait_until_disconnected.inc connection b; commit; disconnect b; --source include/wait_until_disconnected.inc connection default; DROP TABLE g; DROP PROCEDURE populate_g; set innodb_lock_wait_timeout = default;