1 package DBIx::Class::Storage::DBI::ODBC::Firebird;
5 use base 'DBIx::Class::Storage::DBI::Firebird::Common';
12 DBIx::Class::Storage::DBI::ODBC::Firebird - Driver for using the Firebird RDBMS
17 Most functionality is provided by
18 L<DBIx::Class::Storage::DBI::Firebird::Common>, see that driver for details.
20 To build the ODBC driver for Firebird on Linux for unixODBC, see:
22 L<http://www.firebirdnews.org/?p=1324>
24 This driver does not suffer from the nested statement handles across commits
25 issue that the L<DBD::InterBase|DBIx::Class::Storage::DBI::InterBase> or the
26 L<DBD::Firebird|DBIx::Class::Storage::DBI::Firebird> based driver does. This
27 makes it more suitable for long running processes such as under L<Catalyst>.
31 __PACKAGE__->datetime_parser_type ('DBIx::Class::Storage::DBI::ODBC::Firebird::DateTime::Format');
33 # releasing savepoints doesn't work for some reason, but that shouldn't matter
34 sub _exec_svp_release { 1 }
36 sub _exec_svp_rollback {
37 my ($self, $name) = @_;
40 $self->_dbh->do("ROLLBACK TO SAVEPOINT $name")
43 # Firebird ODBC driver bug, ignore
44 if (not /Unable to fetch information about the error/) {
45 $self->throw_exception($_);
50 package # hide from PAUSE
51 DBIx::Class::Storage::DBI::ODBC::Firebird::DateTime::Format;
53 # inherit parse/format date
54 our @ISA = 'DBIx::Class::Storage::DBI::InterBase::DateTime::Format';
56 my $timestamp_format = '%Y-%m-%d %H:%M:%S.%4N'; # %F %T
61 require DateTime::Format::Strptime;
62 $timestamp_parser ||= DateTime::Format::Strptime->new(
63 pattern => $timestamp_format,
66 return $timestamp_parser->parse_datetime(shift);
71 require DateTime::Format::Strptime;
72 $timestamp_parser ||= DateTime::Format::Strptime->new(
73 pattern => $timestamp_format,
76 return $timestamp_parser->format_datetime(shift);
83 See L<DBIx::Class/AUTHOR> and L<DBIx::Class/CONTRIBUTORS>.
87 You may distribute this code under the same terms as Perl itself.