From: Dagfinn Ilmari Mannsåker Date: Sat, 15 Mar 2008 05:20:13 +0000 (+0000) Subject: $dbh->doe doesn't take (Raise|Print)Error attributes, use eval {} instead. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=88c0013061e4c9b601a82b33fe32771d893ccab7;p=dbsrgits%2FDBIx-Class-Historic.git $dbh->doe doesn't take (Raise|Print)Error attributes, use eval {} instead. --- diff --git a/t/745db2.t b/t/745db2.t index 6ddb1cd..82475b1 100644 --- a/t/745db2.t +++ b/t/745db2.t @@ -18,7 +18,7 @@ my $schema = DBICTest::Schema->connect($dsn, $user, $pass); my $dbh = $schema->storage->dbh; -$dbh->do("DROP TABLE artist", { RaiseError => 0, PrintError => 0 }); +eval { $dbh->do("DROP TABLE artist") }; $dbh->do("CREATE TABLE artist (artistid INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1), name VARCHAR(255), charfield CHAR(10));");