MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
show_varpart.inc
1 --disable_query_log
2 let $dump_file = $MYSQLTEST_VARDIR/tmp/desc.txt;
3 
4 if (`select LENGTH('$show_varpart_table') = 0`)
5 {
6  # Default is to show properties of t1
7  let $show_varpart_table=t1;
8 }
9 
10 # Dump the output of ndb_desc to file
11 --exec $NDB_DESC --no-defaults -d test $show_varpart_table > $dump_file
12 
13 # Load the file into a temporary table
14 CREATE TEMPORARY TABLE test.desc (a varchar(512)) ENGINE = HEAP;
15 
16 # needed for embedded
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
21 
22 # Query the temporary table
23 let $value = `SELECT TRIM(TRAILING "\r" FROM a) FROM test.desc
24  WHERE a LIKE BINARY "ForceVarPart%"`;
25 echo $value;
26 
27 DROP TABLE test.desc;
28 --enable_query_log