Use code that works with the WRE's mysql for detecting ft_min_word_len

This commit is contained in:
Colin Kuskie 2010-07-06 17:35:14 -07:00
parent 751aa21f08
commit bc330634ed
2 changed files with 5 additions and 5 deletions

View file

@ -60,9 +60,9 @@ ok(! $search->_isStopword('private.+'), '_isStopword: regex metacharacters
SKIP: {
use utf8;
my $min_word_length = $session->db->quickScalar('SELECT @@ft_min_word_len');
my $min_word_length = $session->db->quickHashRef("show variables like 'ft_min_word_len'");
skip 'MySQL minimum word length too long to support ideograms', 2
if $min_word_length > 2;
if $min_word_length->{Value} > 2;
# Create an article to index
my $article = WebGUI::Asset->getImportNode( $session )->addChild( {

View file

@ -247,9 +247,9 @@ cmp_deeply (
SKIP: {
use utf8;
my $min_word_length = $session->db->quickScalar('SELECT @@ft_min_word_len');
skip 'MySQL minimum word length too long to support ideograms', 1
if $min_word_length > 2;
my $min_word_length = $session->db->quickHashRef("show variables like 'ft_min_word_len'");
skip 'MySQL minimum word length too long to support ideograms', 2
if $min_word_length->{Value} > 2;
$article->update({
description => "甲骨文",