Skip to content

Commit

Permalink
[BUGFIX] Change column metaphone to varchar
Browse files Browse the repository at this point in the history
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: core-ci <typo3@b13.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
froemken authored and bmack committed Jul 6, 2023
1 parent 2d2f1ea commit 1b5041a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typo3/sysext/indexed_search/ext_tables.sql
Expand Up @@ -61,7 +61,7 @@ CREATE TABLE index_rel (
CREATE TABLE index_words (
wid int(11) DEFAULT '0' 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,
PRIMARY KEY (wid),
KEY baseword (baseword),
Expand Down

0 comments on commit 1b5041a

Please sign in to comment.