From: Peter Rabbitson Date: Thu, 13 Aug 2009 06:12:08 +0000 (+0000) Subject: Last bit X-Git-Tag: v0.08109~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=856e2d1714ec2379d62e1b73431915c7f7c798e6;p=dbsrgits%2FDBIx-Class.git Last bit --- diff --git a/t/lib/DBICTest.pm b/t/lib/DBICTest.pm index c69d229..ee55792 100644 --- a/t/lib/DBICTest.pm +++ b/t/lib/DBICTest.pm @@ -135,7 +135,7 @@ sub deploy_schema { close IN; for my $chunk ( split (/;\s*\n+/, $sql) ) { if ( $chunk =~ / ^ (?! --\s* ) \S /xm ) { # there is some real sql in the chunk - a non-space at the start of the string which is not a comment - $schema->storage->dbh->do($chunk) or print "Error on SQL: $chunk\n"; + $schema->storage->dbh_do(sub { $_[1]->do($chunk) }) or print "Error on SQL: $chunk\n"; } } }