let the sqlite schema loader grok CREATE TABLE 'name' (...)
okay simon@
This commit is contained in:
parent
12a0bac260
commit
c9c85982cf
@ -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>
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user