Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wrapper: support table level "flags" option
You can specify KEY_LARGE table option. [groonga-dev,04494] Reported by Masanori Miyashita. Thanks!!!
- Loading branch information
Showing
13 changed files
with
401 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
mysql-test/mroonga/wrapper/create/table/table/flags/r/comment.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| SET NAMES utf8; | ||
| CREATE TABLE memos ( | ||
| content VARCHAR(64) NOT NULL PRIMARY KEY, | ||
| FULLTEXT INDEX (content) | ||
| ) COMMENT='engine "InnoDB", flags "TABLE_HASH_KEY|KEY_LARGE"' | ||
| DEFAULT CHARSET=utf8; | ||
| SELECT mroonga_command("dump --dump_plugins no --dump_indexes no"); | ||
| mroonga_command("dump --dump_plugins no --dump_indexes no") | ||
| table_create memos TABLE_HASH_KEY|KEY_LARGE ShortText | ||
|
|
||
| table_create memos#content TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerMySQLGeneralCI | ||
|
|
||
| table_create mroonga_operations TABLE_NO_KEY | ||
| column_create mroonga_operations record COLUMN_SCALAR UInt32 | ||
| column_create mroonga_operations table COLUMN_SCALAR ShortText | ||
| column_create mroonga_operations type COLUMN_SCALAR ShortText | ||
| DROP TABLE memos; |
19 changes: 19 additions & 0 deletions
19
mysql-test/mroonga/wrapper/create/table/table/flags/r/invalid.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| SET NAMES utf8; | ||
| CREATE TABLE memos ( | ||
| content VARCHAR(64) NOT NULL PRIMARY KEY, | ||
| FULLTEXT INDEX (content) | ||
| ) COMMENT='engine "InnoDB", flags "INVALID"' | ||
| DEFAULT CHARSET=utf8; | ||
| Warnings: | ||
| Warning 16510 The table flag 'INVALID' is invalid. It is ignored | ||
| SELECT mroonga_command("dump --dump_plugins no --dump_indexes no"); | ||
| mroonga_command("dump --dump_plugins no --dump_indexes no") | ||
| table_create memos TABLE_HASH_KEY ShortText | ||
|
|
||
| table_create memos#content TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerMySQLGeneralCI | ||
|
|
||
| table_create mroonga_operations TABLE_NO_KEY | ||
| column_create mroonga_operations record COLUMN_SCALAR UInt32 | ||
| column_create mroonga_operations table COLUMN_SCALAR ShortText | ||
| column_create mroonga_operations type COLUMN_SCALAR ShortText | ||
| DROP TABLE memos; |
18 changes: 18 additions & 0 deletions
18
mysql-test/mroonga/wrapper/create/table/table/flags/r/parameter.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| SET NAMES utf8; | ||
| CREATE TABLE memos ( | ||
| content VARCHAR(64) NOT NULL PRIMARY KEY, | ||
| FULLTEXT INDEX (content) | ||
| ) COMMENT='engine "InnoDB"' | ||
| FLAGS="TABLE_HASH_KEY|KEY_LARGE" | ||
| DEFAULT CHARSET=utf8; | ||
| SELECT mroonga_command("dump --dump_plugins no --dump_indexes no"); | ||
| mroonga_command("dump --dump_plugins no --dump_indexes no") | ||
| table_create memos TABLE_HASH_KEY|KEY_LARGE ShortText | ||
|
|
||
| table_create memos#content TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerMySQLGeneralCI | ||
|
|
||
| table_create mroonga_operations TABLE_NO_KEY | ||
| column_create mroonga_operations record COLUMN_SCALAR UInt32 | ||
| column_create mroonga_operations table COLUMN_SCALAR ShortText | ||
| column_create mroonga_operations type COLUMN_SCALAR ShortText | ||
| DROP TABLE memos; |
40 changes: 40 additions & 0 deletions
40
mysql-test/mroonga/wrapper/create/table/table/flags/t/comment.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Copyright(C) 2017 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
|
||
| --source include/have_innodb.inc | ||
| --source ../../../../../../include/mroonga/have_mroonga.inc | ||
| --source ../../../../../../include/mroonga/load_mroonga_functions.inc | ||
|
|
||
| --disable_query_log | ||
| DROP DATABASE test; | ||
| CREATE DATABASE test; | ||
| USE test; | ||
| --enable_query_log | ||
|
|
||
| SET NAMES utf8; | ||
|
|
||
| CREATE TABLE memos ( | ||
| content VARCHAR(64) NOT NULL PRIMARY KEY, | ||
| FULLTEXT INDEX (content) | ||
| ) COMMENT='engine "InnoDB", flags "TABLE_HASH_KEY|KEY_LARGE"' | ||
| DEFAULT CHARSET=utf8; | ||
|
|
||
| SELECT mroonga_command("dump --dump_plugins no --dump_indexes no"); | ||
|
|
||
| DROP TABLE memos; | ||
|
|
||
| --source ../../../../../../include/mroonga/unload_mroonga_functions.inc | ||
| --source ../../../../../../include/mroonga/have_mroonga_deinit.inc |
Oops, something went wrong.