Navigation Menu

Skip to content

Commit

Permalink
Fix for MariaDB 10.0.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
shibakentoku committed Feb 9, 2014
1 parent 1a0a8fe commit aca6db9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ha_mroonga.hpp
Expand Up @@ -121,7 +121,8 @@ extern "C" {
# define MRN_HAVE_HA_EXTRA_PREPARE_FOR_FORCED_CLOSE
#endif

#if MYSQL_VERSION_ID >= 50607
#if MYSQL_VERSION_ID >= 50607 && \
(!defined(MRN_MARIADB_P) || MYSQL_VERSION_ID < 100008)
# define MRN_HAVE_HA_EXTRA_EXPORT
#endif

Expand Down
Expand Up @@ -21,5 +21,5 @@ INSERT INTO diaries (title, body) VALUES ("groonga (1)", "starting groonga...");
INSERT INTO diaries (title, body) VALUES ("groonga (2)", "started groonga.");
SELECT * FROM diaries FORCE INDEX(primary)
WHERE MATCH(title) AGAINST("survey" IN BOOLEAN MODE);
id title body
ERROR HY000: Can't find FULLTEXT index matching the column list
DROP TABLE diaries;
Expand Up @@ -34,6 +34,7 @@ INSERT INTO diaries (title, body) VALUES ("survey", "will start groonga!");
INSERT INTO diaries (title, body) VALUES ("groonga (1)", "starting groonga...");
INSERT INTO diaries (title, body) VALUES ("groonga (2)", "started groonga.");

-- error ER_FT_MATCHING_KEY_NOT_FOUND
SELECT * FROM diaries FORCE INDEX(primary)
WHERE MATCH(title) AGAINST("survey" IN BOOLEAN MODE);

Expand Down

0 comments on commit aca6db9

Please sign in to comment.