1 package DBIx::Class::Schema::Loader::DBI::ODBC::Firebird;
6 DBIx::Class::Schema::Loader::DBI::ODBC
7 DBIx::Class::Schema::Loader::DBI::InterBase
11 our $VERSION = '0.07024';
15 DBIx::Class::Schema::Loader::DBI::ODBC::Firebird - ODBC wrapper for
16 L<DBIx::Class::Schema::Loader::DBI::InterBase>
20 Proxy for L<DBIx::Class::Schema::Loader::DBI::InterBase> when using L<DBD::ODBC>.
22 See L<DBIx::Class::Schema::Loader::Base> for usage information.
26 # Some (current) versions of the ODBC driver have a bug where ->type_info breaks
27 # with "data truncated". This "fixes" it, but some type names are truncated.
28 sub _dbh_type_info_type_name {
29 my ($self, $type_num) = @_;
31 my $dbh = $self->schema->storage->dbh;
33 local $dbh->{LongReadLen} = 100_000;
34 local $dbh->{LongTruncOk} = 1;
36 my $type_info = $dbh->type_info($type_num);
38 return undef if not $type_info;
40 my $type_name = $type_info->{TYPE_NAME};
42 # fix up truncated type names
43 if ($type_name eq "VARCHAR(x) CHARACTER SET UNICODE_\0") {
44 return 'VARCHAR(x) CHARACTER SET UNICODE_FSS';
46 elsif ($type_name eq "BLOB SUB_TYPE TEXT CHARACTER SET \0") {
47 return 'BLOB SUB_TYPE TEXT CHARACTER SET UNICODE_FSS';
55 L<DBIx::Class::Schema::Loader::DBI::InterBase>,
56 L<DBIx::Class::Schema::Loader>, L<DBIx::Class::Schema::Loader::Base>,
57 L<DBIx::Class::Schema::Loader::DBI>
61 See L<DBIx::Class::Schema::Loader/AUTHOR> and L<DBIx::Class::Schema::Loader/CONTRIBUTORS>.
65 This library is free software; you can redistribute it and/or modify it under
66 the same terms as Perl itself.