projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1132d04
)
fix defaults broken by last Pg defaults fix commit
Rafael Kitover [Tue, 6 Sep 2011 07:44:10 +0000 (
03:44
-0400)]
lib/DBIx/Class/Schema/Loader/DBI/Component/QuotedDefault.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Schema/Loader/DBI/Component/QuotedDefault.pm
b/lib/DBIx/Class/Schema/Loader/DBI/Component/QuotedDefault.pm
index
223b044
..
ecfd87b
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/DBI/Component/QuotedDefault.pm
+++ b/
lib/DBIx/Class/Schema/Loader/DBI/Component/QuotedDefault.pm
@@
-38,7
+38,7
@@
sub _columns_info_for {
elsif ($def =~ /^\((-?\d.*?)\)(?:::[\w\s]+)?\z/) {
$info->{default_value} = $1;
}
- elsif ($def =~ /^(\d.*?)(?:::[\w\s]+)?\z/) {
+ elsif ($def =~ /^(-?\d.*?)(?:::[\w\s]+)?\z/) {
$info->{default_value} = $1;
}
elsif ($def =~ /^NULL:?/i) {