3
$test=shift || die "Usage $0 testname [option]";
6
open(D, "<data/$test.d") || die "Cannot open(<data/$test.d): $!";
7
open(Q, "<data/$test.q") || die "Cannot open(<data/$test.q): $!";
12
DROP TABLE IF EXISTS $test;
14
id int(10) unsigned NOT NULL,
16
FULLTEXT KEY text (text)
17
) TYPE=MyISAM CHARSET=latin1;
19
ALTER TABLE $test DISABLE KEYS;
24
print "INSERT $test VALUES ($N, '$_');\n";
28
ALTER TABLE $test ENABLE KEYS;
36
$_="MATCH text AGAINST ('$_' $option)";
37
print "SELECT $N, id, $_ FROM $test WHERE $_;\n";