# FIX: this is not a good way to check if table exists!
if ($sth->execute() && $sth->fetchrow_hashref) {
my $sql = "drop table $field";
# 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),
}
$sql = "create table $field (
item varchar(255),