403Webshell
Server IP : 104.21.38.3  /  Your IP : 104.23.176.8
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/ndb/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/ndb/t/ndb_short_sigs.test
# The include statement below is a temp one for tests that are yet to
#be ported to run with InnoDB,
#but needs to be kept for tests that would need MyISAM in future.
--source include/force_myisam_default.inc

-- source include/have_ndb.inc


# Create table with unique key, ordered index + blob

create table t1 (
        th int primary key, 
        un int, 
        de int, 
        rb varchar(1000), 
        al longtext, 
        key(de),
        unique(rb)) 
        engine=ndb;

insert into t1 values (1, 1, 1, repeat('O', 1000), repeat('L', 60000));
insert into t1 values (2, 2, 2, repeat('W',  999), repeat('B', 60001));
insert into t1 values (3, 3, 3, repeat('P',  998), repeat('P', 60002));
insert into t1 values (4, 4, 4, repeat('Q',  997), repeat('E', 60003));
insert into t1 values (5, 5, 5, repeat('E',  996), repeat('A', 60004));

# Pk lookup
select th, un, de, length(rb), length(al) 
        from t1 
        where th in (2,4) 
        order by th;

# Uk lookup
select th, un, de, length(rb), length(al) 
        from t1 
        where rb 
        in (repeat('O', 1000), repeat('Q', 997))
        order by th;

# Secondary Index scan
select th, un, de, length(rb), length(al)
        from t1
        where de between 3 and 5
        order by th;

# Table scan
select th, un, de, length(rb), length(al) 
        from t1 
        order by th;

# Update via Pk
update t1 
        set un=6, de=6, rb= repeat('S', 995), al = repeat('O', 60005)
        where th = 1;

# Update via Uk
update t1
        set un=7, de=7, al = repeat('F', 60006)
        where rb = repeat('W', 999);

# Update via Index Scan
update t1
        set un= un + 5, rb = repeat('U', 1000 - un), al = repeat('U', 60000 + un)
        where de >= 3 and de <= 5;

# Table scan
select th, un, de, length(rb), length(al) 
        from t1 
        order by th;

# Online alter table
alter table t1 add column extra varchar(2000);

# Table scanning update
update t1 set extra = repeat(rb, 2);

# Table scan
select th, un, de, length(rb), length(al), length(extra)
        from t1 
        order by th;

# Table scan with large pushed filter
select th, un, de, length(rb), length(al), length(extra)
        from t1
        where extra in (
        repeat('U', 2000),
        repeat('U', 1998),
        repeat('U', 1996),
        repeat('U', 1994),
        repeat('U', 1992),
        repeat('U', 1990),
        repeat('U', 1988),
        repeat('U', 1986),
        repeat('U', 1984),
        repeat('U', 1982),
        repeat('U', 1980),
        repeat('U', 1978),
        repeat('U', 1976),
        repeat('U', 1974),
        repeat('U', 1972),
        repeat('U', 1970),
        repeat('U', 1968),
        repeat('U', 1966),
        repeat('U', 1964))
        order by th;

drop table t1;

Youez - 2016 - github.com/yon3zu
LinuXploit