403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.88.4
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_select_all.inc
# verify that ndb_select_all unpacks the fields correctly and
# displays them like mysql, with 2 differences accounted for:
#
# date/time uses "/" as separator instead of blank
# timestamp is displayed as unix timestamp
#
# use mysql to grep out non-data lines

--let $dump_file1 = $MYSQLTEST_VARDIR/tmp/wl946_select_all1.txt
--let $dump_file2 = $MYSQLTEST_VARDIR/tmp/wl946_select_all2.txt

--exec $NDB_SELECT_ALL --no-defaults -d test --delimiter=, t1 > $dump_file1

create temporary table t1tmp1 (
  x char(255)
) engine=myisam;

--chmod 0777 $dump_file1
--replace_result $dump_file1 DUMP_FILE1
eval load data infile '$dump_file1' into table t1tmp1;

delete from t1tmp1 where x not regexp '^[0-9]*,';
--replace_result $dump_file2 DUMP_FILE2
eval select x from t1tmp1 into outfile '$dump_file2';

create temporary table t1tmp2 (
  a int primary key,
  b char(40),
  c char(40),
  d char(40),
  e char(40),
  f char(40)
) engine=myisam;

--chmod 0777 $dump_file2
--replace_result $dump_file2 DUMP_FILE2
eval load data infile '$dump_file2' into table t1tmp2
fields terminated by ',' lines terminated by '\n';

# remove any windows CR from last field
update t1tmp2 set f = replace(f, '\r', '');

select count(*), sum(crc32(concat(a,b,c,d,e,unix_timestamp(f)))) from t1;
select count(*), sum(crc32(concat(a,b,c,d,replace(e,'/',' '),f))) from t1tmp2;

drop table t1tmp1;
drop table t1tmp2;

--remove_file $dump_file1
--remove_file $dump_file2

Youez - 2016 - github.com/yon3zu
LinuXploit