Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of git@github.com:kazuho/p5-test-mysqld

  • Loading branch information...
commit e6b8f56453f0f92f556995b460e327fa9a35da8d 2 parents 4dbb396 + 0c5937c
@kazuho authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Test/mysqld.pm
View
4 lib/Test/mysqld.pm
@@ -79,7 +79,9 @@ sub dsn {
my ($self, %args) = @_;
$args{port} ||= $self->my_cnf->{port}
if $self->my_cnf->{port};
- unless (defined $args{port}) {
+ if (defined $args{port}) {
+ $args{host} ||= $self->my_cnf->{'bind-address'} || '127.0.0.1';
+ } else {
$args{mysql_socket} ||= $self->my_cnf->{socket};
}
$args{user} ||= 'root';
Please sign in to comment.
Something went wrong with that request. Please try again.