Skip to content
Snippets Groups Projects
Commit 1b5041a7 authored by Stefan Froemken's avatar Stefan Froemken Committed by Benni Mack
Browse files

[BUGFIX] Change column metaphone to varchar

In case of activated STRICT_TRANS_TABLES, better known as strict_mode,
the index_words record incl. metaphone can not be stored as a string
is provided, but an int is expected.
As various metaphone related methods in TYPO3 return a string
we change the DB type of column metaphone to varchar. We set
the length to 60 as it is the same we use in analyzeHeaderinfo().

Resolves: #99547
Releases: main, 12.4, 11.5
Change-Id: Ice4223f2169595b781ed8c3a7dd5dda3f50e8a1e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79817


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 2d2f1ea3
Branches
Tags
No related merge requests found
...@@ -61,7 +61,7 @@ CREATE TABLE index_rel ( ...@@ -61,7 +61,7 @@ CREATE TABLE index_rel (
CREATE TABLE index_words ( CREATE TABLE index_words (
wid int(11) DEFAULT '0' NOT NULL, wid int(11) DEFAULT '0' NOT NULL,
baseword varchar(60) DEFAULT '' NOT NULL, baseword varchar(60) DEFAULT '' NOT NULL,
metaphone int(11) DEFAULT '0' NOT NULL, metaphone varchar(60) DEFAULT '' NOT NULL,
is_stopword tinyint(3) DEFAULT '0' NOT NULL, is_stopword tinyint(3) DEFAULT '0' NOT NULL,
PRIMARY KEY (wid), PRIMARY KEY (wid),
KEY baseword (baseword), KEY baseword (baseword),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment