diff options
author | Rob Austein <sra@hactrn.net> | 2015-10-25 00:38:20 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-10-25 00:38:20 +0000 |
commit | afdeab028259c9cbab6112fe005a1e78c135fe43 (patch) | |
tree | 531a9e894dac962c872eb841a8098926b878a2de /rpki/django_settings/rpkid.py | |
parent | 0c17de892ac39f8252af38c8aca83939d1ea1858 (diff) |
Force MySQL characterset to Latin1 to suppress constant whining about
incorrectly coded UTF-8 in BLOB fields holding ASN.1 DER data. This
is wrong in so many ways that I don't even know where to start, but,
bottom line, forcing Latin1 here is just making MySQL 5.6+ revert to
the behavior in MySQL 5.5.
This is just a workaround. The real solution is probably to switch to
an SQL engine that's not quite such a kludge tower.
svn path=/branches/tk705/; revision=6146
Diffstat (limited to 'rpki/django_settings/rpkid.py')
-rw-r--r-- | rpki/django_settings/rpkid.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpki/django_settings/rpkid.py b/rpki/django_settings/rpkid.py index a2aa9401..1c302b2e 100644 --- a/rpki/django_settings/rpkid.py +++ b/rpki/django_settings/rpkid.py @@ -30,7 +30,8 @@ DATABASES = dict( default = dict(ENGINE = "django.db.backends.mysql", NAME = cfg.get("sql-database", section = "rpkid"), USER = cfg.get("sql-username", section = "rpkid"), - PASSWORD = cfg.get("sql-password", section = "rpkid"))) + PASSWORD = cfg.get("sql-password", section = "rpkid"), + OPTIONS = dict(charset = "latin1"))) # Apps. |