From: Rafael Kitover Date: Fri, 21 May 2010 16:42:00 +0000 (-0400) Subject: fix negative number defaults for Firebird X-Git-Tag: 0.07000~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2a1ff2eee1d8775ff8cca7144d6d36b24bb0605a;p=dbsrgits%2FDBIx-Class-Schema-Loader.git fix negative number defaults for Firebird --- diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index 1c49a0d..e0587ca 100644 --- 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 --- 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; } }