2 let $dump_file = $MYSQLTEST_VARDIR/tmp/desc.txt;
4 if (`select LENGTH(
'$show_varpart_table') = 0`)
6 # Default is to show properties of t1
7 let $show_varpart_table=t1;
10 # Dump the output of ndb_desc to file
11 --exec $NDB_DESC --no-defaults -d
test $show_varpart_table > $dump_file
13 # Load the file into a temporary table
14 CREATE TEMPORARY
TABLE test.desc (a varchar(512)) ENGINE = HEAP;
17 --chmod 0777 $dump_file
18 --replace_result $dump_file DUMP_FILE
19 eval LOAD DATA INFILE
'$dump_file' INTO
TABLE test.desc;
20 --remove_file $dump_file
22 # Query the temporary table
23 let $value = `SELECT TRIM(TRAILING
"\r" FROM a) FROM
test.desc
24 WHERE a LIKE BINARY
"ForceVarPart%"`;