* Fixed the bug in the test that made it fail in the END block even if all tests...
Norbert Buchmuller [Wed, 18 Feb 2009 04:07:56 +0000 (05:07 +0100)]
t/73oracle.t

index ee00ed5..51cc932 100644 (file)
@@ -149,7 +149,7 @@ is($st->pkid1, 55, "Oracle Auto-PK without trigger: First primary key set manual
 
 # clean up our mess
 END {
-    if($dbh = $schema->storage->dbh) {
+    if($schema && ($dbh = $schema->storage->dbh)) {
         $dbh->do("DROP SEQUENCE artist_seq");
         $dbh->do("DROP SEQUENCE pkid1_seq");
         $dbh->do("DROP SEQUENCE pkid2_seq");