let the sqlite schema loader grok CREATE TABLE 'name' (...)

okay simon@
This commit is contained in:
espie 2007-05-15 10:38:42 +00:00
parent 12a0bac260
commit c9c85982cf
2 changed files with 14 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.6 2007/05/05 17:44:50 simon Exp $
# $OpenBSD: Makefile,v 1.7 2007/05/15 10:38:42 espie Exp $
COMMENT= "dynamic definition of a DBIx::Class::Schema"
MODULES= cpan
DISTNAME= DBIx-Class-Schema-Loader-0.03011
PKGNAME= p5-${DISTNAME}p0
PKGNAME= p5-${DISTNAME}p1
CATEGORIES= databases
MAINTAINER= Simon Bertrang <simon@openbsd.org>

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-lib_DBIx_Class_Schema_Loader_DBI_SQLite_pm,v 1.1 2007/05/15 10:38:42 espie Exp $
--- lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm.orig Tue May 15 11:22:01 2007
+++ lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm Tue May 15 11:23:49 2007
@@ -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