/[A3C]/lib/Strix.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Strix.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 185 by dpavlin, Mon Jun 16 22:17:06 2008 UTC revision 188 by dpavlin, Tue Jun 17 10:11:46 2008 UTC
# Line 54  sub dbh { Line 54  sub dbh {
54    
55          my $dbh = DBI->connect( $dsn, $database->{user}, $database->{passwd} ) or die "$DBI::errstr\n";          my $dbh = DBI->connect( $dsn, $database->{user}, $database->{passwd} ) or die "$DBI::errstr\n";
56    
57            # force database to send us back UTF-8 no metter what it's encoding
58            $dbh->do("set client_encoding='utf-8'");
59            $dbh->{pg_enable_utf8} = 1;
60    
61          $instance_dbh->{$instance} = $dbh;          $instance_dbh->{$instance} = $dbh;
62    
63          warn "## instance_dbh = ",dump( $instance_dbh ) if $debug;          warn "## instance_dbh = ",dump( $instance_dbh ) if $debug;

Legend:
Removed from v.185  
changed lines
  Added in v.188

  ViewVC Help
Powered by ViewVC 1.1.26