From: Brandon Black Date: Tue, 15 May 2007 13:53:49 +0000 (+0000) Subject: Fix from Marc Espie for CREATE TABLE 'foo' for SQLite X-Git-Tag: 0.03012~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d83f05398ba5add1501784e353356e0f40d7d697;p=dbsrgits%2FDBIx-Class-Schema-Loader.git Fix from Marc Espie for CREATE TABLE 'foo' for SQLite --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm index 51530b4..1a7d437 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm @@ -42,7 +42,7 @@ sub _sqlite_parse_table { $sth->finish; # Cut "CREATE TABLE ( )" blabla... - $sql =~ /^[\w\s]+\((.*)\)$/si; + $sql =~ /^[\w\s']+\((.*)\)$/si; my $cols = $1; # strip single-line comments