projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1b3e8f7
)
fix negative number defaults for Firebird
Rafael Kitover [Fri, 21 May 2010 16:42:00 +0000 (12:42 -0400)]
lib/DBIx/Class/Schema/Loader/Base.pm
patch
|
blob
|
blame
|
history
lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Schema/Loader/Base.pm
b/lib/DBIx/Class/Schema/Loader/Base.pm
index
1c49a0d
..
e0587ca
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/Base.pm
+++ b/
lib/DBIx/Class/Schema/Loader/Base.pm
@@
-129,7
+129,7
@@
overwriting a dump made with an earlier version.
The option also takes a hashref:
- naming => { relationships => 'v6', monikers => 'v6' }
+ naming => { relationships => 'v7', monikers => 'v7' }
The keys are:
diff --git
a/lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm
b/lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm
index
c5cfb2a
..
6d077aa
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm
+++ b/
lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm
@@
-284,7
+284,7
@@
EOF
$info->{default_value} = $quoted;
}
else {
- $info->{default_value} = $def =~ /^\d/ ? $def : \$def;
+ $info->{default_value} = $def =~ /^-?\d/ ? $def : \$def;
}
}