From: Brandon Black Date: Wed, 27 Sep 2006 15:38:10 +0000 (+0000) Subject: new tests + bugfix for rt.cpan.org #21025 X-Git-Tag: 0.03008~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f8c39323580deb004bc027b2fac5585827c67360;p=dbsrgits%2FDBIx-Class-Schema-Loader.git new tests + bugfix for rt.cpan.org #21025 --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm index 2471acd..8ca2d66 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm @@ -90,7 +90,7 @@ sub _sqlite_parse_table { push(@uniqs, [ $name => \@cols ]); } - next if $col !~ /^(.*)\s+REFERENCES\s+(\w+) (?: \s* \( (.*) \) )? /ix; + next if $col !~ /^(.*\S)\s+REFERENCES\s+(\w+) (?: \s* \( (.*) \) )? /ix; my ($cols, $f_table, $f_cols) = ($1, $2, $3); diff --git a/t/lib/dbixcsl_common_tests.pm b/t/lib/dbixcsl_common_tests.pm index 3a86855..26e106d 100644 --- a/t/lib/dbixcsl_common_tests.pm +++ b/t/lib/dbixcsl_common_tests.pm @@ -550,8 +550,8 @@ sub create { Id2 INTEGER, loader_test2 INTEGER, dat VARCHAR(8), - FOREIGN KEY (loader_test2) REFERENCES loader_test2 (id), - FOREIGN KEY (id, Id2 ) REFERENCES loader_test5 (id1,iD2) + FOREIGN KEY (loader_test2) REFERENCES loader_test2 (id), + FOREIGN KEY(id,Id2) REFERENCES loader_test5 (id1,iD2) ) $self->{innodb} },