Server IP : 172.67.216.182 / Your IP : 172.70.189.88 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 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 : ON Directory : /www/server/mysql/src/mysql-test/suite/opt_trace/t/ |
Upload File : |
#Start server with MyISAM --source include/force_myisam_default.inc if (`SELECT $PS_PROTOCOL + $SP_PROTOCOL + $CURSOR_PROTOCOL + $VIEW_PROTOCOL > 0`) { --skip Need normal protocol } # The main testing script --source suite/opt_trace/include/range.inc --echo --echo # BUG#18023222 OPTIMIZER TRACE ERROR ON RANGE ANALYSIS OF --echo # INDEX ON A BINARY COLUMN --echo CREATE TABLE t(i INT PRIMARY KEY, b BINARY(16), INDEX i_b(b)); INSERT INTO t VALUES (1, x'D95B94336A9946A39CF5B58CFE772D8C'); INSERT INTO t VALUES (2, NULL); EXPLAIN SELECT * FROM t WHERE b IN (0xD95B94336A9946A39CF5B58CFE772D8C); SELECT trace FROM information_schema.optimizer_trace; EXPLAIN SELECT * FROM t WHERE b IS NULL; SELECT trace FROM information_schema.optimizer_trace; drop table t; --source include/show_json_object.inc --echo # --echo # Test trace of geometry fields --echo # # Must be an engine that supports spatial indexes CREATE TABLE t1( pk INT AUTO_INCREMENT PRIMARY KEY, col_geom GEOMETRY NOT NULL ) ENGINE=MyISAM; INSERT INTO t1 VALUES (1, ST_GeomFromText('POINT(10 10)')); INSERT INTO t1 VALUES (2, ST_GeomFromText('POINT(11 11)')); CREATE SPATIAL INDEX idx3 on t1(col_geom DESC); --echo # Show that geometry data is traced as "unprintable_geometry_value" EXPLAIN SELECT pk, ST_AsText(col_geom) FROM t1 WHERE MBREquals(t1.col_geom, ST_GeomFromText('POINT(12 13)')); SELECT show_json_object('"range_scan_alternatives": [', TRACE) FROM INFORMATION_SCHEMA.OPTIMIZER_TRACE; DROP TABLE t1; DROP FUNCTION show_json_object;