X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FInterBase.pm;h=be44732b75f3f9445367a252e1aef256299a713c;hb=cb9c535fda0a11fd5615b0351474207a12b06992;hp=122c41e063d34c1c1d5e9c084c44a699b66ab874;hpb=c4a69b87bd3d3fdda08f05d363311a6e9d3fc0f7;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm b/lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm index 122c41e..be44732 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm @@ -2,14 +2,14 @@ package DBIx::Class::Schema::Loader::DBI::InterBase; use strict; use warnings; -use mro 'c3'; use base qw/DBIx::Class::Schema::Loader::DBI/; +use mro 'c3'; use Carp::Clan qw/^DBIx::Class/; use List::Util 'first'; use namespace::clean; use DBIx::Class::Schema::Loader::Table (); -our $VERSION = '0.07010'; +our $VERSION = '0.07034_02'; sub _supports_db_schema { 0 } @@ -226,7 +226,7 @@ EOF $info->{data_type} = 'blob'; } elsif ($sub_type_name eq 'TEXT') { - if ($char_set_id == 3) { + if (defined $char_set_id && $char_set_id == 3) { $info->{data_type} = 'blob sub_type text character set unicode_fss'; } else { @@ -275,7 +275,7 @@ EOF if ($data_type =~ /^(?:char|varchar)\z/) { $info->{size} = $char_length; - if ($char_set_id == 3) { + if (defined $char_set_id && $char_set_id == 3) { $info->{data_type} .= '(x) character set unicode_fss'; } }