⚝
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
/
t
/
View File Name :
condition_filter.test
--echo # --echo # Bug 20219846: EXPLAIN FOR LIMIT QUERY SHOWS FILESORT BUT EXECUTION --echo # IS DONE WITH INDEX ONLY --echo # CREATE TABLE t0 ( i0 INTEGER NOT NULL ); INSERT INTO t0 VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); CREATE TABLE t1 ( pk INTEGER PRIMARY KEY, i1 INTEGER NOT NULL, i2 INTEGER NOT NULL, INDEX k1 (i1) ) ENGINE=InnoDB; INSERT INTO t1 SELECT a0.i0 + 10*a1.i0 + 100*a2.i0, (a0.i0 + 10*a1.i0 + 100*a2.i0) % 50, a0.i0 + 10*a1.i0 + 100*a2.i0 FROM t0 AS a0, t0 AS a1, t0 AS a2; CREATE TABLE t2 ( pk INTEGER PRIMARY KEY, i1 INTEGER NOT NULL, i2 INTEGER NOT NULL, INDEX k1 (i1) ) ENGINE=InnoDB; INSERT INTO t2 SELECT a0.i0 + 10*a1.i0 + 100*a2.i0, (a0.i0 + 10*a1.i0 + 100*a2.i0) % 500, a0.i0 + 10*a1.i0 + 100*a2.i0 FROM t0 AS a0, t0 AS a1, t0 AS a2; ANALYZE TABLE t1,t2; let query= SELECT * FROM t1 JOIN t2 ON t1.i1=t2.i1 WHERE t2.i2 > 3 ORDER BY t1.i1 LIMIT 20; --echo # Explain should show "Using filesort" eval EXPLAIN $query; FLUSH STATUS; eval $query; --echo # Status from execution should show that filesort was used SHOW STATUS LIKE 'Sort%'; DROP TABLE t0, t1, t2;