[Bast-commits] r3439 - trunk/DBIx-Class/lib/DBIx/Class/Storage
ilmari at dev.catalyst.perl.org
ilmari at dev.catalyst.perl.org
Wed May 30 12:31:48 GMT 2007
Author: ilmari
Date: 2007-05-30 12:31:47 +0100 (Wed, 30 May 2007)
New Revision: 3439
Modified:
trunk/DBIx-Class/lib/DBIx/Class/Storage/DBI.pm
Log:
Include the DBI error message if a deploy statement fails.
Modified: trunk/DBIx-Class/lib/DBIx/Class/Storage/DBI.pm
===================================================================
--- trunk/DBIx-Class/lib/DBIx/Class/Storage/DBI.pm 2007-05-30 10:40:13 UTC (rev 3438)
+++ trunk/DBIx-Class/lib/DBIx/Class/Storage/DBI.pm 2007-05-30 11:31:47 UTC (rev 3439)
@@ -1125,7 +1125,7 @@
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;
}
}
More information about the Bast-commits
mailing list