Fix from Marc Espie for CREATE TABLE 'foo' for SQLite
Brandon Black [Tue, 15 May 2007 13:53:49 +0000 (13:53 +0000)]
lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm

index 51530b4..1a7d437 100644 (file)
@@ -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