Use code that works with the WRE's mysql for detecting ft_min_word_len
This commit is contained in:
parent
751aa21f08
commit
bc330634ed
2 changed files with 5 additions and 5 deletions
|
|
@ -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( {
|
||||
|
|
|
|||
|
|
@ -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 => "甲骨文",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue