Revision history for DBIx-Class-Fixtures
+1.001017
+- Changed the test suite so it doesn't mindlessly break with the changes
+ introduced by DBIC 0.08200.
+
1.001016
- Support more Postgresql types for datetime_relative (added TIME, DATE,
INTERVAL, TIMESTAMP)
__PACKAGE__->mk_group_accessors( 'simple' => qw/config_dir
_inherited_attributes debug schema_class dumped_objects config_attrs/);
-our $VERSION = '1.001016';
+our $VERSION = '1.001017';
=head1 NAME
my $sql;
{ local $/ = undef; $sql = <IN>; }
close IN;
- ($schema->storage->dbh->do($_) || print "Error on SQL: $_\n") for split(/;\n/, $sql);
+
+ foreach my $line (split(/;\n/, $sql)) {
+ print "$line\n";
+ next if(!$line);
+ next if($line =~ /^--/);
+ next if($line =~ /^BEGIN TRANSACTION/m);
+ next if($line =~ /^COMMIT/m);
+ next if $line =~ /^\s+$/; # skip whitespace only
+
+ $schema->storage->dbh->do($line) || print "Error on SQL: $line\n";
+ }
}