next if($_ =~ /^COMMIT/m);
next if $_ =~ /^\s+$/; # skip whitespace only
$self->debugobj->query_start($_) if $self->debug;
- $self->dbh->do($_) or warn "SQL was:\n $_";
+ $self->dbh->do($_) or warn $self->dbh->errstr, "\nSQL was:\n $_";
$self->debugobj->query_end($_) if $self->debug;
}
}