move Firebird ODBC override for RETURNING to a SQLAHacks class
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / ODBC / Firebird.pm
CommitLineData
dff4c3a3 1package DBIx::Class::Storage::DBI::ODBC::Firebird;
2
3use strict;
4use warnings;
5use base qw/DBIx::Class::Storage::DBI::InterBase/;
6use mro 'c3';
7
dff4c3a3 8=head1 NAME
9
10DBIx::Class::Storage::DBI::ODBC::Firebird - Driver for using the Firebird RDBMS
11through ODBC
12
13=head1 SYNOPSIS
14
15All functionality is provided by L<DBIx::Class::Storage::DBI::Interbase>, see
16that module for details.
17
1ae0a36c 18=cut
19
1696e04f 20__PACKAGE__->sql_maker_class('DBIx::Class::SQLAHacks::ODBC::Firebird');
1ae0a36c 21
9cd0b325 22sub datetime_parser_type { __PACKAGE__ }
23
323148de 24my $datetime_parser;
9cd0b325 25
26sub parse_datetime {
27 shift;
28 require DateTime::Format::Strptime;
323148de 29 $datetime_parser ||= DateTime::Format::Strptime->new(
9cd0b325 30 pattern => '%F %H:%M:%S',
31 on_error => 'croak',
32 );
323148de 33 $datetime_parser->parse_datetime(shift);
9cd0b325 34}
35
1ae0a36c 361;
37
dff4c3a3 38=head1 AUTHOR
39
40See L<DBIx::Class/AUTHOR> and L<DBIx::Class/CONTRIBUTORS>.
41
42=head1 LICENSE
43
44You may distribute this code under the same terms as Perl itself.
45
46=cut