⚝
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
/
include
/
View File Name :
partition_date_range.inc
# Created for verifying bug#20577. # expects TABLE t1 (... , a DATE, ...) --sorted_result SELECT * FROM t1 WHERE a < '1001-01-01'; --sorted_result SELECT * FROM t1 WHERE a <= '1001-01-01'; --sorted_result SELECT * FROM t1 WHERE a >= '1001-01-01'; --sorted_result SELECT * FROM t1 WHERE a > '1001-01-01'; --sorted_result SELECT * FROM t1 WHERE a = '1001-01-01'; --sorted_result SELECT * FROM t1 WHERE a < '1001-00-00'; --sorted_result SELECT * FROM t1 WHERE a <= '1001-00-00'; --sorted_result SELECT * FROM t1 WHERE a >= '1001-00-00'; --sorted_result SELECT * FROM t1 WHERE a > '1001-00-00'; --sorted_result SELECT * FROM t1 WHERE a = '1001-00-00'; --echo # Disabling warnings for the invalid date --disable_warnings --sorted_result SELECT * FROM t1 WHERE a < '1999-02-31'; --sorted_result SELECT * FROM t1 WHERE a <= '1999-02-31'; --sorted_result SELECT * FROM t1 WHERE a >= '1999-02-31'; --sorted_result SELECT * FROM t1 WHERE a > '1999-02-31'; --sorted_result SELECT * FROM t1 WHERE a = '1999-02-31'; --enable_warnings --sorted_result SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00'; --sorted_result SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01'; --sorted_result SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00'; --sorted_result SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01'; if ($explain_partitions) { EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-01-01'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-01-01'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-01-01'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-01-01'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-01-01'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1001-00-00'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1001-00-00'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1001-00-00'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1001-00-00'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1001-00-00'; --echo # Disabling warnings for the invalid date --disable_warnings EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a < '1999-02-31'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a <= '1999-02-31'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1999-02-31'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1999-02-31'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1999-02-31'; --enable_warnings EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1002-00-00'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0000-00-00' AND '1001-01-01'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00'; EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01'; }