Skip to content

Commit

Permalink
Set client_encoding on PostgreSQL.
Browse files Browse the repository at this point in the history
The other drivers look good.
  • Loading branch information
theory committed Apr 4, 2015
1 parent 98fbc5e commit 45b03f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Revision history for Perl extension App::Sqitch

0.9992
- On PostgreSQL, Sqitch now sets the `client_encoding` parameter to
`UTF8`. This ensures that data sent to and from the databse should
always be properly encoded and decoded.

0.9991 2015-04-03T23:14:39Z
[Improvements]
Expand Down
1 change: 1 addition & 0 deletions lib/App/Sqitch/Engine/pg.pm
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ has dbh => (
'SET search_path = ?',
undef, $self->registry
);
$dbh->do(qq{SET client_encoding = 'UTF8'});
# http://www.nntp.perl.org/group/perl.dbi.dev/2013/11/msg7622.html
$dbh->set_err(undef, undef) if $dbh->err;
};
Expand Down

0 comments on commit 45b03f7

Please sign in to comment.