move Firebird ODBC driver ->type_info override into driver
[dbsrgits/DBIx-Class-Schema-Loader.git] / lib / DBIx / Class / Schema / Loader / DBI / ODBC / Firebird.pm
CommitLineData
4cbddf8d 1package DBIx::Class::Schema::Loader::DBI::ODBC::Firebird;
2
3use strict;
4use warnings;
5use base qw/
6 DBIx::Class::Schema::Loader::DBI::ODBC
7 DBIx::Class::Schema::Loader::DBI::InterBase
8/;
9use Carp::Clan qw/^DBIx::Class/;
942bd5e0 10use mro 'c3';
4cbddf8d 11
4295c4b4 12our $VERSION = '0.07010';
4cbddf8d 13
14=head1 NAME
15
16DBIx::Class::Schema::Loader::DBI::ODBC::Firebird - ODBC wrapper for
17L<DBIx::Class::Schema::Loader::DBI::InterBase>
18
19=head1 DESCRIPTION
20
21Proxy for L<DBIx::Class::Schema::Loader::DBI::InterBase> when using L<DBD::ODBC>.
22
23See L<DBIx::Class::Schema::Loader::Base> for usage information.
24
23024b3f 25=cut
26
27# Some (current) versions of the ODBC driver have a bug where ->type_info breaks
28# with "data truncated". This "fixes" it, but some type names are truncated.
29sub _dbh_type_info {
30 my ($self, $type_num) = @_;
31
32 my $dbh = $self->schema->storage->dbh;
33
34 local $dbh->{LongReadLen} = 100_000;
35 local $dbh->{LongTruncOk} = 1;
36
37 return $dbh->type_info($type_num);
38}
39
4cbddf8d 40=head1 SEE ALSO
41
42L<DBIx::Class::Schema::Loader::DBI::InterBase>,
43L<DBIx::Class::Schema::Loader>, L<DBIx::Class::Schema::Loader::Base>,
44L<DBIx::Class::Schema::Loader::DBI>
45
46=head1 AUTHOR
47
48See L<DBIx::Class::Schema::Loader/AUTHOR> and L<DBIx::Class::Schema::Loader/CONTRIBUTORS>.
49
50=head1 LICENSE
51
52This library is free software; you can redistribute it and/or modify it under
53the same terms as Perl itself.
54
55=cut
56
571;