Page MenuHomePhabricator

test_add_new_tag_utf8 fails
Closed, InvalidPublic

Description

When running tests, test_add_new_tag_utf8 returns an error:

OperationalError: (OperationalError) (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='") 'SELECT tag.id AS tag_id, tag.name AS tag_name \nFROM tag \nWHERE tag.name = %s \n LIMIT %s' (u'18\u043d\u0430\u0442\u0430\u043b\u044c', 1)


Version: unspecified
Severity: normal

Details

Reference
bz67166

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:27 AM
bzimport set Reference to bz67166.
bzimport added a subscriber: Unknown Object (MLST).

What might be happening is that you need to rebuild your database.

Try:

mysql> drop wikimetrics_testing; drop wikimetrics

and outside vagrant just run

vagrant provision

That should start the database fresh.

I couldn't replicate this, and I may have been a bit confused when it was first reported, because of another bug: https://bugzilla.wikimedia.org/show_bug.cgi?id=66671. Either way, I think this can be solved with nuria's instructions. The other bug has a patch for review now.