X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FSQLite.pm;h=8ca2d666c0f33e3d97e8f11c02e2529cabecab29;hb=518472fafb907ed2633edee57f9adba4d77834d0;hp=fa9a0572611626f0204f9d056d977a17e066847b;hpb=25328cc401d1f24e5c975475b6389fa462698b73;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm index fa9a057..8ca2d66 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm @@ -3,7 +3,7 @@ package DBIx::Class::Schema::Loader::DBI::SQLite; use strict; use warnings; use base qw/DBIx::Class::Schema::Loader::DBI/; -use Carp::Clan qw/^DBIx::Class::Schema::Loader/; +use Carp::Clan qw/^DBIx::Class/; use Text::Balanced qw( extract_bracketed ); use Class::C3; @@ -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);