Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Search custom index: log_search_words not built in correct collation #7830

Open
sbulen opened this issue Aug 18, 2023 · 4 comments
Open

Search custom index: log_search_words not built in correct collation #7830

sbulen opened this issue Aug 18, 2023 · 4 comments
Labels
Charset/Encoding UTF8 & mb4 encoding related issues Database Search

Comments

@sbulen
Copy link
Contributor

sbulen commented Aug 18, 2023

Description

log_search_words is built in the DB default collation, not utf8mb3_general_ci to match the rest of SMF tables.

image

Steps to reproduce

  1. Create a new DB with a default collation latin1_swedish_ci
  2. Install vanilla 2.1
  3. Build a custom search index; its collation will be latin1_swedish_ci

Environment (complete as necessary)

  • Version/Git revision: current
  • Database Type: mysql
  • Database Version: 8.0
  • PHP Version: 8.2
@sbulen sbulen added Search Database Charset/Encoding UTF8 & mb4 encoding related issues labels Aug 18, 2023
@albertlast
Copy link
Collaborator

should be a mysql only issue

@sbulen
Copy link
Contributor Author

sbulen commented Aug 18, 2023

Yep

@jdarwood007
Copy link
Member

Possibly unrelated. But I have a forum that is failing to upgrade to UTF-8 because of this table. I have to change the words column to varchar(80) to get the upgrade to complete.

@sbulen
Copy link
Contributor Author

sbulen commented Nov 25, 2023

@jdarwood007 - Note that there are no text columns in this table, so I think your utf8 conversion failing is due to another table.

My suspicion is your error was with log_search_subjects, and that what you saw is a dupe/alt symptom of #6405 ... Still need to properly get to mb4 (#6409 ).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Charset/Encoding UTF8 & mb4 encoding related issues Database Search
Projects
None yet
Development

No branches or pull requests

3 participants