Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pg/mysql: Propagate conn params
  • Loading branch information
salortiz committed Mar 28, 2016
1 parent f1e36d2 commit 07226c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/DBDish/Pg.pm6
Expand Up @@ -73,7 +73,7 @@ method connect(:database(:$dbname), :$RaiseError, *%params) {
my $pg_conn = PGconn.new(~@connection_parameters);
my $status = $pg_conn.PQstatus;
if $status == CONNECTION_OK {
DBDish::Pg::Connection.new(:$pg_conn, :$RaiseError, :parent(self));
DBDish::Pg::Connection.new(:$pg_conn, :$RaiseError, :parent(self), |%params);
}
else {
self!conn-error: :code($status) :$RaiseError :errstr($pg_conn.PQerrorMessage);
Expand Down
2 changes: 1 addition & 1 deletion lib/DBDish/mysql.pm6
Expand Up @@ -26,7 +26,7 @@ method connect(:$RaiseError, *%params ) {
unless $errstr = $mysql_client.mysql_error {
$mysql_client.mysql_set_character_set('utf8'); # A sane default
$connection = DBDish::mysql::Connection.new(
:$mysql_client, :$RaiseError, :parent(self)
:$mysql_client, :$RaiseError, :parent(self), |%params,
);
}
}
Expand Down

0 comments on commit 07226c7

Please sign in to comment.