Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Unicode handling in db (Closes #34)
  • Loading branch information
zoffixznet committed Nov 21, 2015
1 parent 0fb8a2f commit 1d97568
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions web/lib/ModulesPerl6/Model/BuildStats.pm
Expand Up @@ -14,8 +14,10 @@ has db_file => sub {
};

has _db => sub {
ModulesPerl6::Model::BuildStats::Schema
->connect('dbi:SQLite:' . shift->db_file)
ModulesPerl6::Model::BuildStats::Schema->connect(
'dbi:SQLite:' . shift->db_file,
'', '', { sqlite_unicode => 1 },
);
};

sub deploy {
Expand Down
5 changes: 4 additions & 1 deletion web/lib/ModulesPerl6/Model/Dists.pm
Expand Up @@ -15,7 +15,10 @@ has db_file => sub {
};

has _db => sub {
ModulesPerl6::Model::Dists::Schema->connect('dbi:SQLite:' . shift->db_file)
ModulesPerl6::Model::Dists::Schema->connect(
'dbi:SQLite:' . shift->db_file,
'', '', { sqlite_unicode => 1 },
);
};

sub _find {
Expand Down

0 comments on commit 1d97568

Please sign in to comment.