From: Peter Rabbitson Date: Wed, 27 Jan 2010 11:33:33 +0000 (+0000) Subject: DSNs can not be empty X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=02f4c550ac5977d592c7bd40b5fc3e065a664f6e;p=dbsrgits%2FDBIx-Class-Historic.git DSNs can not be empty --- diff --git a/t/98savepoints.t b/t/98savepoints.t index 6ba78a3..4ca9a95 100644 --- a/t/98savepoints.t +++ b/t/98savepoints.t @@ -8,11 +8,11 @@ use DBICTest::Stats; my ($create_sql, $dsn, $user, $pass); -if (exists $ENV{DBICTEST_PG_DSN}) { +if ($ENV{DBICTEST_PG_DSN}) { ($dsn, $user, $pass) = @ENV{map { "DBICTEST_PG_${_}" } qw/DSN USER PASS/}; $create_sql = "CREATE TABLE artist (artistid serial PRIMARY KEY, name VARCHAR(100), rank INTEGER NOT NULL DEFAULT '13', charfield CHAR(10))"; -} elsif (exists $ENV{DBICTEST_MYSQL_DSN}) { +} elsif ($ENV{DBICTEST_MYSQL_DSN}) { ($dsn, $user, $pass) = @ENV{map { "DBICTEST_MYSQL_${_}" } qw/DSN USER PASS/}; $create_sql = "CREATE TABLE artist (artistid INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100), rank INTEGER NOT NULL DEFAULT '13', charfield CHAR(10)) ENGINE=InnoDB";