403Webshell
Server IP : 172.67.216.182  /  Your IP : 172.70.208.75
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_wl946_pre.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
--source include/not_embedded.inc
--source suite/ndb/include/have_little_endian.inc

--disable_warnings
drop table if exists t1;
--enable_warnings

# runs before and after wl#946 / wl#6231
# result file is same (avoid ndb_desc if new types are possible)
# also creates a backup used in ndb_wl946_post.test

select @@session.time_zone;
set time_zone = '+00:00';
select @@session.time_zone;

--echo # create table
--let $prec=
--let $frac=
--source ndb_wl946_create.inc
show create table t1;

--echo # test defaults
insert into t1 (a) values (0);
select * from t1;
delete from t1;

--echo # load data
load data local infile 'suite/ndb/data/wl946_pre.dat'
  into table t1 fields terminated by ',' lines terminated by '\n';

--echo # check contents
select count(*), sum(crc32(concat(a,b,c,d,e,f))) from t1;

--echo # run backup
--source include/ndb_backup.inc

--echo # index queries
--source ndb_wl946_pre_query.inc

--echo # check results via myisam
alter table t1 engine=myisam;
show create table t1;
select count(*), sum(crc32(concat(a,b,c,d,e,f))) from t1;
--source ndb_wl946_pre_query.inc

--echo # drop table
drop table t1;

--echo # restore meta from backup
--exec $NDB_RESTORE --no-defaults -b $the_backup_id -n 1 -m --print-meta $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT
show create table t1;

--echo # restore data from backup
--exec $NDB_RESTORE --no-defaults -b $the_backup_id -n 1 -r $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT
--exec $NDB_RESTORE --no-defaults -b $the_backup_id -n 2 -r $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT

--echo # check contents
select count(*), sum(crc32(concat(a,b,c,d,e,f))) from t1;

--echo # drop table
drop table t1;

--echo # restore meta from wl946_pre
--exec $NDB_RESTORE --no-defaults -b 1 -n 1 -m --print-meta $MYSQL_TEST_DIR/suite/ndb/backups/wl946_pre >> $NDB_TOOLS_OUTPUT
# datetime,timestamp default wrong on solaris (probably bug#53818)
# show create table t1;
# ndb_restore creates old types
--source show_attributes.inc
--source show_indexes.inc

--echo # restore data from wl946_pre
--exec $NDB_RESTORE --no-defaults -b 1 -n 1 -r $MYSQL_TEST_DIR/suite/ndb/backups/wl946_pre >> $NDB_TOOLS_OUTPUT
--exec $NDB_RESTORE --no-defaults -b 1 -n 2 -r $MYSQL_TEST_DIR/suite/ndb/backups/wl946_pre >> $NDB_TOOLS_OUTPUT

--echo # check contents
select count(*), sum(crc32(concat(a,b,c,d,e,f))) from t1;

--echo # index queries
--source ndb_wl946_pre_query.inc

set time_zone = default;
select @@session.time_zone;

drop table t1;

Youez - 2016 - github.com/yon3zu
LinuXploit