MySQL table-level non-default collations get ignored by mysql if they come before a charset declaration

Issue #2225 resolved
Former user created an issue

(original reporter: taavi) MySQL is picky with respect to the ordering of CHARSET and COLLATE clauses on a table definition.

If CHARSET comes first, everything's fine. But if COLLATE comes first, it gets overridden by the subsequent CHARSET (which tosses the collation back to the per-charset default.

I haven't had a chance to poke further into how to fix it, but I do have a repro script for now.

I originally found this while reflecting tables, but it looks like the bug is just in the CREATE rendering.

Comments (4)

  1. Former user Account Deleted

    (original author: taavi) This appears to happen in 0.6.8 and 0.7.1. I haven't tried the development tip yet.

  2. Mike Bayer repo owner
    • changed milestone to 0.7.3

    nothing has changed re: mysql in awhile. if the create rendering is off its a pretty easy fix.

  3. Log in to comment