use Carp::Clan qw/^DBIx::Class/;
use mro 'c3';
-our $VERSION = '0.07009';
+our $VERSION = '0.07010';
=head1 NAME
See L<DBIx::Class::Schema::Loader::Base> for usage information.
+=cut
+
+# Some (current) versions of the ODBC driver have a bug where ->type_info breaks
+# with "data truncated". This "fixes" it, but some type names are truncated.
+sub _dbh_type_info {
+ my ($self, $type_num) = @_;
+
+ my $dbh = $self->schema->storage->dbh;
+
+ local $dbh->{LongReadLen} = 100_000;
+ local $dbh->{LongTruncOk} = 1;
+
+ return $dbh->type_info($type_num);
+}
+
=head1 SEE ALSO
L<DBIx::Class::Schema::Loader::DBI::InterBase>,