Navigation Menu

Skip to content

Commit

Permalink
test: use check_version.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 19, 2012
1 parent ec13cc5 commit a585cb6
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions test/sql/include/have_fulltext_index_comment.inc
@@ -1,7 +1,25 @@
--disable_query_log
let $fulltext_index_comment = `SELECT @@global.version >= '5.5'`;
--enable_query_log
if (!$fulltext_index_comment)
{
# Copyright(C) 2012 Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

--source include/check_version.inc

if ($version_55_or_later) {
let $fulltext_index_comment = `SELECT @@global.version >= '5.5'`;
}

if (!$fulltext_index_comment) {
skip Fulltext index comment is available in version 5.5 or later;
}

0 comments on commit a585cb6

Please sign in to comment.