SPOPS/DBI/Sybase.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 25 CC 2 SCAR 12.8
CC
2
Cov
0%
post_fetch_id
6.0
sql_current_date
2.0
BEGIN
2.0
CRAP 3.6
1 package SPOPS::DBI::Sybase;
2  
3 # $Id: Sybase.pm,v 3.6 2004/06/02 00:48:22 lachoy Exp $
4  
5 use strict;
6 use SPOPS::Key::DBI::Identity;
7  
8 $SPOPS::DBI::Sybase::VERSION = sprintf("%d.%02d", q$Revision: 3.6 $ =~ /(\d+)\.(\d+)/);
9  
10 sub sql_current_date { return 'GETDATE()' }
11  
12 # Backward compatibility and convenience, so you don't have to specify
13 # another item in the isa -- instead just set 'syb_identity' or
14 # 'increment_field' to true.
15  
16 sub post_fetch_id {
17 my ( $item, @args ) = @_;
18 return undef unless ( $item->CONFIG->{increment_field} or $item->CONFIG->{syb_identity} );
19 return SPOPS::Key::DBI::Identity::post_fetch_id( $item, @args );
20 }
21  
22  
23 1;
24  
25 __END__