From be94d2448c1166f2be3745241fee52d88e94504f Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 10 Feb 2004 10:20:50 +0000 Subject: [PATCH] don't die if old table cannot be dropped git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@225 13eb9ef6-21d5-0310-b721-a9d68796d827 --- index_DBI_cache.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index_DBI_cache.pm b/index_DBI_cache.pm index ae6c7ca..43a1b27 100644 --- a/index_DBI_cache.pm +++ b/index_DBI_cache.pm @@ -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), -- 2.20.1