2 let $dump_file = $MYSQLTEST_VARDIR/tmp/desc.txt;
4 # Dump the output of ndb_desc to file
5 --exec $NDB_DESC --no-defaults -d
test t1 > $dump_file
7 # Load the file into a temporary table
8 CREATE TEMPORARY
TABLE test.desc (a varchar(512)) ENGINE = HEAP;
11 --chmod 0777 $dump_file
12 --replace_result $dump_file DUMP_FILE
13 eval LOAD DATA INFILE
'$dump_file' INTO
TABLE test.desc;
14 --remove_file $dump_file
16 # Query the temporary table
17 --replace_regex /BT=NDB\$BLOB_[0-9]+_[0-9]+/BT=NDB$BLOB_#_#/
18 SELECT TRIM(TRAILING
"\r" FROM a) as
'Attributes:' FROM
test.desc
19 WHERE a LIKE BINARY
"%ST=%";