diff --git a/t/Search.t b/t/Search.t index 9c269d03e..2da50d94e 100644 --- a/t/Search.t +++ b/t/Search.t @@ -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( { diff --git a/t/Search/Index.t b/t/Search/Index.t index ce7972f39..977b253cf 100644 --- a/t/Search/Index.t +++ b/t/Search/Index.t @@ -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 => "甲骨文",