From: Rafael Kitover Date: Wed, 7 Jul 2010 13:35:37 +0000 (-0400) Subject: fix firebird data_type tests X-Git-Tag: 0.07001~15 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=28d530005a8ca6c0eb8ca50bccc6ea536ab15695;p=dbsrgits%2FDBIx-Class-Schema-Loader.git fix firebird data_type tests --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm b/lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm index c20bc8d..6f73395 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm @@ -254,6 +254,9 @@ EOF elsif ($info->{data_type} eq 'character') { $info->{data_type} = 'char'; } + elsif ($info->{data_type} eq 'float') { + $info->{data_type} = 'real'; + } elsif ($info->{data_type} eq 'int64' || $info->{data_type} eq '-9581') { # the constant is just in case, the query should pick up the type $info->{data_type} = 'bigint';