2 # Check if the binaries are compiled with error insert support
3 # by running ndb_mgm and check if it support the command "all error" which
4 # is only available when error insert is suppoerted.
8 let $dump_file = $MYSQLTEST_VARDIR/tmp/ndb_mgm_error.txt;
10 # Dump the output of ndb_mgm "all error 0" to file
12 --exec $NDB_MGM --no-defaults --ndb-connectstring=
"$NDB_CONNECTSTRING" -e
"all error 0" > $dump_file
14 # Load the file into a temporary table
15 CREATE TEMPORARY
TABLE t37 (a varchar(512)) ENGINE = HEAP;
18 --chmod 0777 $dump_file
19 --replace_result $dump_file DUMP_FILE
20 eval LOAD DATA INFILE
'$dump_file' INTO
TABLE t37;
21 --remove_file $dump_file
23 # Query the temporary table
24 let $invalid_command_error =
25 `SELECT count(*) FROM t37 WHERE a REGEXP 'Invalid command: error'`;
29 if ($invalid_command_error)
31 skip No error insert support;