1 package DBIx::Class::Storage::DBI::ODBC::Firebird;
5 use base qw/DBIx::Class::Storage::DBI::InterBase/;
10 DBIx::Class::Storage::DBI::ODBC::Firebird - Driver for using the Firebird RDBMS
15 Most functionality is provided by L<DBIx::Class::Storage::DBI::Interbase>, see
16 that module for details.
18 To build the ODBC driver for Firebird on Linux for unixODBC, see:
20 L<http://www.firebirdnews.org/?p=1324>
22 This driver does not suffer from the nested statement handles across commits
23 issue that the L<DBD::InterBase|DBIx::Class::Storage::DBI::InterBase> based
24 driver does. This makes it more suitable for long running processes such as
29 # XXX seemingly no equivalent to ib_time_all from DBD::InterBase via ODBC
30 sub connect_call_datetime_setup { 1 }
32 # we don't need DBD::InterBase-specific initialization
35 # ODBC uses dialect 3 by default, good
36 sub _set_sql_dialect { 1 }
38 # releasing savepoints doesn't work, but that shouldn't matter
39 sub _svp_release { 1 }
41 sub _populate_server_info {
42 goto &DBIx::Class::Storage::DBI::_populate_server_info
45 sub datetime_parser_type {
46 'DBIx::Class::Storage::DBI::ODBC::Firebird::DateTime::Format'
49 package # hide from PAUSE
50 DBIx::Class::Storage::DBI::ODBC::Firebird::DateTime::Format;
52 # inherit parse/format date
53 our @ISA = 'DBIx::Class::Storage::DBI::InterBase::DateTime::Format';
55 my $timestamp_format = '%Y-%m-%d %H:%M:%S'; # %F %T, no fractional part
60 require DateTime::Format::Strptime;
61 $timestamp_parser ||= DateTime::Format::Strptime->new(
62 pattern => $timestamp_format,
65 return $timestamp_parser->parse_datetime(shift);
70 require DateTime::Format::Strptime;
71 $timestamp_parser ||= DateTime::Format::Strptime->new(
72 pattern => $timestamp_format,
75 return $timestamp_parser->format_datetime(shift);
86 This driver (unlike L<DBD::InterBase>) does not currently support reading or
87 writing C<TIMESTAMP> values with sub-second precision.
93 See L<DBIx::Class/AUTHOR> and L<DBIx::Class/CONTRIBUTORS>.
97 You may distribute this code under the same terms as Perl itself.