EVOLUTION-MANAGER
Edit File: variable_vector_column_delimiter.test
# Copyright(C) 2014 Naoya Murakami <naoya@createfield.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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA --source include/not_embedded.inc --source ../../include/mroonga/have_mroonga.inc --source ../../include/mroonga/have_mroonga_helper.inc --disable_warnings DROP TABLE IF EXISTS document; DROP TABLE IF EXISTS category; --enable_warnings CREATE TABLE category ( category CHAR(10) PRIMARY KEY ) DEFAULT CHARSET=utf8 COMMENT='default_tokenizer "TokenDelimit"'; CREATE TABLE document ( id INT NOT NULL, title TEXT, categories TEXT COMMENT 'flags "COLUMN_VECTOR", type "category"', PRIMARY KEY(id) ) DEFAULT CHARSET=utf8; SHOW GLOBAL VARIABLES LIKE 'mroonga_vector_column_delimiter'; INSERT INTO document VALUES(1, "Mroonga is the fastest search engine", "it database fulltext"); SELECT id, title, categories FROM document; SET GLOBAL mroonga_vector_column_delimiter = ';'; SHOW GLOBAL VARIABLES LIKE 'mroonga_vector_column_delimiter'; SELECT id, title, categories FROM document; DROP TABLE document; DROP TABLE category; SET GLOBAL mroonga_vector_column_delimiter = ' '; --source ../../include/mroonga/have_mroonga_deinit.inc