don't die if old table cannot be dropped
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 10 Feb 2004 10:20:50 +0000 (10:20 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 10 Feb 2004 10:20:50 +0000 (10:20 +0000)
git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@225 13eb9ef6-21d5-0310-b721-a9d68796d827

index_DBI_cache.pm

index ae6c7ca..43a1b27 100644 (file)
@@ -66,7 +66,7 @@ sub delete_and_create {
 # FIX: this is not a good way to check if table exists!
        if ($sth->execute() && $sth->fetchrow_hashref) {
                my $sql = "drop table $field";
-               my $sth = $self->{dbh}->do($sql) || die "SQL: $sql ".$self->{dbh}->errstr();
+               my $sth = $self->{dbh}->do($sql) || warn "SQL: $sql - ".$sth->errstr();
        }
        $sql = "create table $field (
                        item varchar(255),