From: Arthur Axel 'fREW' Schmidt Date: Fri, 1 Nov 2013 16:27:47 +0000 (-0500) Subject: remove default Pg dsn X-Git-Tag: v0.11019~41 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=baeea1687d1d1dc3678f1255b6d7a57efb821975;p=dbsrgits%2FSQL-Translator.git remove default Pg dsn This can cause spurious failures if the default DSN could connect but didn't have permissions for example. --- diff --git a/t/66-postgres-dbi-parser.t b/t/66-postgres-dbi-parser.t index 94f3260..2fd1648 100644 --- a/t/66-postgres-dbi-parser.t +++ b/t/66-postgres-dbi-parser.t @@ -16,8 +16,7 @@ use_ok('SQL::Translator::Parser::DBI::PostgreSQL'); my @dsn = $ENV{DBICTEST_PG_DSN} ? @ENV{ map { "DBICTEST_PG_$_" } qw/DSN USER PASS/ } -: $ENV{DBI_DSN} ? @ENV{ map { "DBI_$_" } qw/DSN USER PASS/ } -: ( "dbi:Pg:dbname=postgres", '', '' ); +: $ENV{DBI_DSN} ? @ENV{ map { "DBI_$_" } qw/DSN USER PASS/ }; my $dbh = eval { DBI->connect(@dsn, {AutoCommit => 1, RaiseError=>1,PrintError => 1} );