Skip to content

Commit

Permalink
Fix regex for removing database from DSN (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
pali authored and mbeijen committed Oct 4, 2016
1 parent 1f8c3fc commit f4e0595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/05dbcreate.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use lib 't', '.';
require 'lib.pl';

# remove database from DSN
$test_dsn =~ s/^DBI:mysql:([^:]+):/DBI:mysql::/;
$test_dsn =~ s/^DBI:mysql:([^:]+)(:?)/DBI:mysql:$2/;

my $dbh;
eval {$dbh= DBI->connect($test_dsn, $test_user, $test_password,
Expand Down

0 comments on commit f4e0595

Please sign in to comment.