-
Bug
-
Resolution: Fixed
-
Major
-
3.0.7-PL1
-
None
-
Mysql with fulltext search
Support topic: http://www.phpbb.com/community/viewtopic.php?f=46&t=2035165
In mysql if a fulltext index is created over multiple columns, collations of all of those columns must be the same. In the linked code above, the procedure for creating a fulltext index changes collation on post text but not on post subject.
If the affected columns already use the target collation, changing collation on one column is a no-op. If affected columns use different collation, after the code runs collation on columns differs and index creation fails.
A fix would be changing collation on both columns.
Note that the commented out line is a result of http://tps.projects.bsdpower.com/changeset/7675 and http://www.phpbb.com/bugs/phpbb3/11637.
Also note that the commented out line unconditionally changes subject column length to 100 chars. In support topic linked above the user's subject column was 255 chars long. Depending on mysql version changing length to 100 chars (or any fixed number, for that matter) may result in silent data loss.
- was caused by solution of
-
PHPBB-4574 Database charset!
- Closed