Use utf8 charset for searchindex MySQL table
authorKevin Israel <pleasestand@live.com>
Thu, 26 Sep 2013 05:38:02 +0000 (01:38 -0400)
committerKevin Israel <pleasestand@live.com>
Thu, 26 Sep 2013 06:02:52 +0000 (02:02 -0400)
This prevents the DB error "1283 Column 'si_title' cannot be part of
FULLTEXT index", which happens when the "binary" charset is used.

Note that 2ab7c9ec3b fixed the problem for creation of new DBs, though
not for reuse of existing DBs. It is still necessary to specify the
character set for the table itself.

Bug: 47191
Change-Id: Ib4f30fd2730839af1323295898e6dce47b27068d

RELEASE-NOTES-1.22
maintenance/tables.sql

index 957ee64..c9bff69 100644 (file)
@@ -314,6 +314,8 @@ production.
 * (bug 6200) line breaks in <blockquote> are handled like they are in <div>
 * (bug 14931) Default character set now set to 'utf8' when a new MySQL
   database is created.
+* (bug 47191) Fixed "Column 'si_title' cannot be part of FULLTEXT index"
+  MySQL error when installing using the binary character set option.
 
 === API changes in 1.22 ===
 * (bug 25553) The JSON output formatter now leaves forward slashes unescaped
index df1bc06..d37ca47 100644 (file)
@@ -1132,7 +1132,7 @@ CREATE TABLE /*_*/searchindex (
 
   -- Munged version of body text
   si_text mediumtext NOT NULL
-) ENGINE=MyISAM;
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
 
 CREATE UNIQUE INDEX /*i*/si_page ON /*_*/searchindex (si_page);
 CREATE FULLTEXT INDEX /*i*/si_title ON /*_*/searchindex (si_title);