Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/server/mysql/mysql-test/t/ |
Upload File : |
# Test of query cache for partitioned innodb tables # Note that partitioned tables does no longer support query caching # due to bug#11761296. --source include/have_query_cache.inc --source include/have_innodb.inc --source include/have_partition.inc let $engine_type= InnoDB; # Using SELECT to get a space as first character. let $partitions_a= `SELECT ' PARTITION BY KEY (a) PARTITIONS 3'`; let $partitions_id= `SELECT ' PARTITION BY HASH (id) PARTITIONS 3'`; let $partitions_s1= `SELECT ' PARTITION BY KEY (s1) PARTITIONS 3'`; # partitioning does not support FOREIGN KEYs let $test_foreign_keys= 0; --source include/query_cache.inc SET @old_query_cache_size = @@global.query_cache_size; SET GLOBAL query_cache_size=1355776; CREATE TABLE t1 (`NUM` varchar(4) NOT NULL, `UPDATE_TIME` datetime NOT NULL, PRIMARY KEY (`NUM`,`UPDATE_TIME`)) PARTITION BY RANGE (month(UPDATE_TIME)) (PARTITION p2 VALUES LESS THAN (3) ENGINE = InnoDB, PARTITION p3 VALUES LESS THAN (4) ENGINE = InnoDB); SELECT * FROM t1 WHERE MONTH(update_time)=3; INSERT INTO t1 VALUES ('AAA', '2010-03-11 00:00:00'); SELECT * FROM t1 WHERE MONTH(update_time)=3; ALTER TABLE t1 TRUNCATE PARTITION p3; COMMIT; SELECT * FROM t1 WHERE MONTH(update_time)=3; SELECT SQL_NO_CACHE * FROM t1 WHERE MONTH(update_time)=3; ALTER TABLE t1 DROP PARTITION p3; SELECT * FROM t1 WHERE MONTH(update_time)=3; DROP TABLE t1; SET @@global.query_cache_size = @old_query_cache_size;