X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI.pm;h=e733b539b7ed41ecba2587e9cf1307be449dcd5f;hb=fbd466a29a3f5c3a9eeb2ba3691d675ee6388e47;hp=015fa3ee566744129456243c6b949dfae5658e54;hpb=90ec6cad73fe820d3e03fdbf2f13b6b841c42096;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index 015fa3e..e733b53 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -436,7 +436,7 @@ sub _execute { @bind = map { ref $_ ? ''.$_ : $_ } @bind; # stringify args my $rv; if ($sth) { - $rv = $sth->execute(@bind); + $rv = $sth->execute(@bind) or $self->throw_exception("Error executing '$sql': " . $sth->errstr); } else { $self->throw_exception("'$sql' did not generate a statement."); }