projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
5b60f0c
)
fixed versioned stuff to strip BEGIN from sql files
Luke Saunders [Wed, 9 Jul 2008 00:11:38 +0000 (
00:11
+0000)]
lib/DBIx/Class/Schema/Versioned.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Schema/Versioned.pm
b/lib/DBIx/Class/Schema/Versioned.pm
index
0799202
..
1b864cc
100644
(file)
--- a/
lib/DBIx/Class/Schema/Versioned.pm
+++ b/
lib/DBIx/Class/Schema/Versioned.pm
@@
-324,7
+324,7
@@
sub _read_sql_file {
@data = split(/;/, join('', @data));
close($fh);
@data = grep { $_ && $_ !~ /^-- / } @data;
- @data = grep { $_ !~ /^(BEGIN TRANSACTION|COMMIT)/m } @data;
+ @data = grep { $_ !~ /^(BEGIN|BEGIN TRANSACTION|COMMIT)/m } @data;
return \@data;
}