X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FODBC%2FFirebird.pm;h=2b555baf932f71585a982d46135b2cdff9024c53;hb=a2bd379666d729133d65c85dc775627937084b18;hp=9741a4578bcf35262d0a4e5a379322813edf5242;hpb=5c6696c8fc3ea7b3d266a7357f86baffe8a93f84;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/ODBC/Firebird.pm b/lib/DBIx/Class/Storage/DBI/ODBC/Firebird.pm index 9741a45..2b555ba 100644 --- a/lib/DBIx/Class/Storage/DBI/ODBC/Firebird.pm +++ b/lib/DBIx/Class/Storage/DBI/ODBC/Firebird.pm @@ -31,14 +31,12 @@ makes it more suitable for long running processes such as under L. =cut -__PACKAGE__->datetime_parser_type ('DBIx::Class::Storage::DBI::ODBC::Firebird::DateTime::Format'); - # batch operations in DBD::ODBC 1.35 do not work with the official ODBC driver sub _run_connection_actions { my $self = shift; if ($self->_dbh_get_info('SQL_DRIVER_NAME') eq 'OdbcFb') { - $self->_get_dbh->{odbc_disable_array_operations} = 1; + $self->_disable_odbc_array_ops; } return $self->next::method(@_); @@ -61,44 +59,20 @@ sub _exec_svp_rollback { }; } -package # hide from PAUSE - DBIx::Class::Storage::DBI::ODBC::Firebird::DateTime::Format; - -# inherit parse/format date -our @ISA = 'DBIx::Class::Storage::DBI::InterBase::DateTime::Format'; - -my $timestamp_format = '%Y-%m-%d %H:%M:%S.%4N'; # %F %T -my $timestamp_parser; - -sub parse_datetime { - shift; - require DateTime::Format::Strptime; - $timestamp_parser ||= DateTime::Format::Strptime->new( - pattern => $timestamp_format, - on_error => 'croak', - ); - return $timestamp_parser->parse_datetime(shift); -} - -sub format_datetime { - shift; - require DateTime::Format::Strptime; - $timestamp_parser ||= DateTime::Format::Strptime->new( - pattern => $timestamp_format, - on_error => 'croak', - ); - return $timestamp_parser->format_datetime(shift); -} - -1; +=head1 FURTHER QUESTIONS? -=head1 AUTHOR +Check the list of L. -See L and L. +=head1 COPYRIGHT AND LICENSE -=head1 LICENSE +This module is free software L +by the L. You can +redistribute it and/or modify it under the same terms as the +L. -You may distribute this code under the same terms as Perl itself. =cut + # vim:sts=2 sw=2: + +1;