Server IP : 172.67.216.182 / Your IP : 172.69.176.167 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/include/ |
Upload File : |
# # ndb_get_blob_tables.inc - get blob tables names for all blob columns # # Usage: # let ndb_database= <table database>; # let ndb_table= <table name>; # --source suite/ndb/include/ndb_get_blob_tables.inc # # For each blob column where will be a variable # $bt_<table database>_<table_name>_<column_name> # with the blob table name (with escaped $) # let ndb_get_blob_tables_result_file= $MYSQLTEST_VARDIR/tmp/ndb_get_blob_tables_result.inc; --perl my $db = $ENV{ndb_database} or die "Missing ndb_database in environment"; my $tbl = $ENV{ndb_table} or die "Missing ndb_table in environment"; my $cmd = "$ENV{NDB_DESC} -d$db $tbl"; open RUN, "$cmd|"; open RES, ">$ENV{ndb_get_blob_tables_result_file}"; while (<RUN>) { if (/(\w+) .* BT=(NDB.BLOB_\d+_\d+).*/) { my $column = $1; my $blob_table = $2; $blob_table =~ s/\$/\\\$/g; print RES "let \$bt_${db}_${tbl}_${column} = ".$blob_table.";\n"; } } close RES; close RUN; EOF let ndb_database=; let ndb_table=; --source $ndb_get_blob_tables_result_file --remove_file $ndb_get_blob_tables_result_file