Skip to content

Instantly share code, notes, and snippets.

View DrHyde's full-sized avatar

David Cantrell DrHyde

View GitHub Profile
@DrHyde
DrHyde / gist:025ba250c13cdb37fd16
Created February 19, 2015 16:26
Work-around for the UTF-8 bug in DBD::mysql
# We found that we could successfully write ASCII to the db, and the ij-ligature,
# and the unicode snowman, and the unicode pile of poo, and text that included
# i-acute and a pile of poo. But we couldn't write just an i-acute.
#
# This is apparently a long-standing and unfixable bug in DBD::mysql
# (see https://rt.cpan.org/Public/Bug/Display.html?id=60987)
#
# This patches DBIx::Class::Storage::DBI to work around the problem.
# It's based on https://gist.github.com/anonymous/c19af1e80dcf7272e6c5
# but we're already monkey-patching DBIx::Class::Storage::DBI::_dbh_execute