Page MenuHomePhabricator

Different Collations specified for the 'log' database vs the tables in them
Closed, ResolvedPublic

Description

The database is set to use the collation "latin1_swedish_ci", while the tables are all set to use "utf8_general_ci". This causes problems when you're trying to use computed columns, since they'll be using the database's collation.

Fix would be to set the database's collation to "utf8_general_ci"


Version: unspecified
Severity: normal

Details

Reference
bz45718

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:18 AM
bzimport set Reference to bz45718.

It errors out with Illegal mix of collations (utf8_general_ci,IMPLICIT) and (latin1_swedish_ci,NUMERIC) for operation '>'

Done:

> show variables like "character_set_database";
+------------------------+-------+
| Variable_name          | Value |
+------------------------+-------+
| character_set_database | utf8  |
+------------------------+-------+
1 row in set (0.00 sec)

> show variables like "collation_database";
+--------------------+-----------------+
| Variable_name      | Value           |
+--------------------+-----------------+
| collation_database | utf8_general_ci |
+--------------------+-----------------+
1 row in set (0.01 sec)

[moving from MediaWiki extensions to Analytics product - see bug 61946]