Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 3.17.59.199
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
mysql /
mysql-test /
suite /
innodb_gis /
t /
[ HOME SHELL ]
Name
Size
Permission
Action
0.test
911
B
-rw-r--r--
1.test
49.62
KB
-rw-r--r--
alter_spatial_index.test
24.38
KB
-rw-r--r--
bug16236208.test
3.07
KB
-rw-r--r--
bug16266012.test
873
B
-rw-r--r--
bug17057168.test
1.15
KB
-rw-r--r--
check_rtree.test
781
B
-rw-r--r--
create_spatial_index.test
42.08
KB
-rw-r--r--
geometry.test
25.68
KB
-rw-r--r--
gis.test
48.77
KB
-rw-r--r--
gis_split_inf.test
9.81
KB
-rw-r--r--
gis_split_nan.test
19.28
KB
-rw-r--r--
kill_server.test
1.2
KB
-rw-r--r--
multi_pk.test
2.38
KB
-rw-r--r--
point_basic.test
34.66
KB
-rw-r--r--
point_big.test
14.58
KB
-rw-r--r--
precise.test
9.13
KB
-rw-r--r--
repeatable_spatial.test
6.75
KB
-rw-r--r--
rollback.test
226.33
KB
-rw-r--r--
row_format.test
749
B
-rw-r--r--
rt_precise.test
1.71
KB
-rw-r--r--
rtree.test
100.99
KB
-rw-r--r--
rtree_compress.test
1.84
KB
-rw-r--r--
rtree_compress2.test
1.25
KB
-rw-r--r--
rtree_concurrent_srch.test
13.26
KB
-rw-r--r--
rtree_concurrent_srch_2.test
1.52
KB
-rw-r--r--
rtree_create_inplace.test
2.01
KB
-rw-r--r--
rtree_debug.test
1.5
KB
-rw-r--r--
rtree_drop_index.test
140.96
KB
-rw-r--r--
rtree_estimate.test
2.51
KB
-rw-r--r--
rtree_multi_pk.test
4.79
KB
-rw-r--r--
rtree_old.test
46.97
KB
-rw-r--r--
rtree_purge.test
1.31
KB
-rw-r--r--
rtree_recovery.test
1.74
KB
-rw-r--r--
rtree_rollback1.test
1.54
KB
-rw-r--r--
rtree_rollback2.test
717
B
-rw-r--r--
rtree_search.test
3.76
KB
-rw-r--r--
rtree_split.test
4.19
KB
-rw-r--r--
rtree_undo.test
847
B
-rw-r--r--
types.test
2.58
KB
-rw-r--r--
update_root.test
862
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : repeatable_spatial.test
# ***************************************************************** # Test spatial index with isolation level Repeatable Read on DML # This will also test the no phantom rows happens # Check the COUNT(*) and SELECT results before & after COMMIT in # the last con1 statment # Test at con1: Global Repeatable Read con2 : Sess Read Committed # Test at con1: Sess Repeatable Read con2 : Sess Read Committed # ***************************************************************** --source include/have_innodb.inc --source include/have_geometry.inc --source include/not_embedded.inc # Test Repeatable Read & Read committed at Global, Session levels CREATE TABLE tab(c1 int NOT NULL PRIMARY KEY,c2 POINT NOT NULL, c3 LINESTRING NOT NULL,c4 POLYGON NOT NULL,c5 GEOMETRY NOT NULL) ENGINE=InnoDB; ALTER TABLE tab ADD SPATIAL INDEX idx2(c2 ASC); ALTER TABLE tab ADD SPATIAL KEY idx3(c3 DESC); ALTER TABLE tab ADD SPATIAL INDEX idx4(c4 ASC) COMMENT 'testing spatial index on Polygon'; ALTER TABLE tab ADD SPATIAL KEY idx5(c5 ASC) COMMENT 'testing spatial index on Geometry'; INSERT INTO tab(c1,c2,c3,c4,c5) VALUES(1,ST_GeomFromText('POINT(10 10)'),ST_GeomFromText('LINESTRING(5 5,20 20,30 30)'), ST_GeomFromText('POLYGON((30 30,40 40,50 50,30 50,30 40,30 30))'), ST_GeomFromText('POLYGON((30 30,40 40,50 50,30 50,30 40,30 30))')); # 1 record is expected SELECT c1,ST_AsText(c2),ST_AsText(c3),ST_AsText(c4),ST_AsText(c5) FROM tab; # Record count should be 1 SELECT COUNT(*) FROM tab; --echo "In connection 1" connect (con1,localhost,root,,); connection con1; SET GLOBAL TRANSACTION ISOLATION LEVEL REPEATABLE READ; SELECT @@tx_isolation; # Record count should be 1 SELECT COUNT(*) FROM tab; # 1 record is expected SELECT c1,ST_AsText(c2),ST_AsText(c3),ST_AsText(c4),ST_AsText(c5) FROM tab; --echo "In connection 2" connect (con2,localhost,root,,); connection con2; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED; SELECT @@tx_isolation; START TRANSACTION; INSERT INTO tab(c1,c2,c3,c4,c5) VALUES(2,ST_GeomFromText('POINT(20 20)'),ST_GeomFromText('LINESTRING(20 20,30 30,40 40)'), ST_GeomFromText('POLYGON((40 50,40 70,50 100,70 100,80 80,70 50,40 50))'), ST_GeomFromText('POLYGON((40 50,40 70,50 100,70 100,80 80,70 50,40 50))')); SET @g1 = ST_GeomFromText('POLYGON((30 30,40 40,50 50,30 50,30 40,30 30))'); SET @g2 = ST_GeomFromText('POINT(10 10)'); # Record should be updated UPDATE tab SET C5 = ST_GeomFromText('POLYGON((300 300,400 400,500 500,300 500,300 400,300 300))') WHERE MBREquals(tab.c4, @g1) AND MBREquals(tab.c2, @g2); --echo "In connection 1" connection con1; SET @g3 = ST_GeomFromText('POLYGON((40 50,40 70,50 100,70 100,80 80,70 50,40 50))'); # No record is expected (No phantom row) SELECT c1,ST_AsText(c2),ST_AsText(c4),ST_AsText(c5) FROM tab WHERE MBREquals(tab.c5, @g3); # Record count should be 1 SELECT COUNT(*) FROM tab; START TRANSACTION; # Record count should be 1 SELECT COUNT(*) FROM tab; --echo "In connection 2" connection con2; # Record count should be 2 SELECT COUNT(*) FROM tab; COMMIT; disconnect con2; --source include/wait_until_disconnected.inc --echo "In connection 1" connection con1; # Record count should be 1 SELECT COUNT(*) FROM tab; SET @g4 = ST_GeomFromText('POLYGON((300 300,400 400,500 500,300 500,300 400,300 300))'); # No records are expected (No phantom row) SELECT ST_AsText(c5) FROM tab WHERE MBREquals(tab.c5, @g4); COMMIT; # The updated record is expected SELECT ST_AsText(c5) FROM tab WHERE MBREquals(tab.c5, @g4); # Record count should be 2 SELECT COUNT(*) FROM tab; # 2 records are expected SELECT c1,ST_AsText(c2),ST_AsText(c4),ST_AsText(c5) FROM tab; disconnect con1; --source include/wait_until_disconnected.inc --connection default DROP TABLE tab; # Test Repeatable Read & Read committed at Session levels CREATE TABLE tab(c1 int NOT NULL PRIMARY KEY,c2 POINT NOT NULL, c3 LINESTRING NOT NULL,c4 POLYGON NOT NULL,c5 GEOMETRY NOT NULL) ENGINE=InnoDB; ALTER TABLE tab ADD SPATIAL INDEX idx2(c2 ASC); ALTER TABLE tab ADD SPATIAL KEY idx3(c3 DESC); ALTER TABLE tab ADD SPATIAL INDEX idx4(c4 ASC) COMMENT 'testing spatial index on Polygon'; ALTER TABLE tab ADD SPATIAL KEY idx5(c5 ASC) COMMENT 'testing spatial index on Geometry'; INSERT INTO tab(c1,c2,c3,c4,c5) VALUES(1,ST_GeomFromText('POINT(10 10)'),ST_GeomFromText('LINESTRING(5 5,20 20,30 30)'), ST_GeomFromText('POLYGON((30 30,40 40,50 50,30 50,30 40,30 30))'), ST_GeomFromText('POLYGON((30 30,40 40,50 50,30 50,30 40,30 30))')); # 1 record is expected SELECT c1,ST_AsText(c2),ST_AsText(c3),ST_AsText(c4),ST_AsText(c5) FROM tab; # Record count should be 1 SELECT COUNT(*) FROM tab; --echo "In connection 1" connect (con1,localhost,root,,); connection con1; SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ; SELECT @@tx_isolation; # Record count should be 1 SELECT COUNT(*) FROM tab; # 1 record is expected SELECT c1,ST_AsText(c2),ST_AsText(c3),ST_AsText(c4),ST_AsText(c5) FROM tab; --echo "In connection 2" connect (con2,localhost,root,,); connection con2; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED; SELECT @@tx_isolation; START TRANSACTION; INSERT INTO tab(c1,c2,c3,c4,c5) VALUES(2,ST_GeomFromText('POINT(20 20)'),ST_GeomFromText('LINESTRING(20 20,30 30,40 40)'), ST_GeomFromText('POLYGON((40 50,40 70,50 100,70 100,80 80,70 50,40 50))'), ST_GeomFromText('POLYGON((40 50,40 70,50 100,70 100,80 80,70 50,40 50))')); SET @g1 = ST_GeomFromText('POLYGON((30 30,40 40,50 50,30 50,30 40,30 30))'); SET @g2 = ST_GeomFromText('POINT(10 10)'); # Record should be updated UPDATE tab SET C5 = ST_GeomFromText('POLYGON((300 300,400 400,500 500,300 500,300 400,300 300))') WHERE MBREquals(tab.c4, @g1) AND MBREquals(tab.c2, @g2); --echo "In connection 1" connection con1; SET @g3 = ST_GeomFromText('POLYGON((40 50,40 70,50 100,70 100,80 80,70 50,40 50))'); # No record is expected (No phantom row) SELECT c1,ST_AsText(c2),ST_AsText(c4),ST_AsText(c5) FROM tab WHERE MBREquals(tab.c5, @g3); # Record count should be 1 SELECT COUNT(*) FROM tab; START TRANSACTION; # Record count should be 1 SELECT COUNT(*) FROM tab; --echo "In connection 2" connection con2; # Record count should be 2 SELECT COUNT(*) FROM tab; COMMIT; disconnect con2; --source include/wait_until_disconnected.inc --echo "In connection 1" connection con1; # Record count should be 1 SELECT COUNT(*) FROM tab; SET @g4 = ST_GeomFromText('POLYGON((300 300,400 400,500 500,300 500,300 400,300 300))'); # No records are expected (No phantom row) SELECT ST_AsText(c5) FROM tab WHERE MBREquals(tab.c5, @g4); COMMIT; # The updated record is expected SELECT ST_AsText(c5) FROM tab WHERE MBREquals(tab.c5, @g4); # Record count should be 2 SELECT COUNT(*) FROM tab; # 2 records are expected SELECT c1,ST_AsText(c2),ST_AsText(c4),ST_AsText(c5) FROM tab; disconnect con1; --source include/wait_until_disconnected.inc --connection default DROP TABLE tab;
Close