Object/Metadata/Column/Pg/Bytea.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 33 CC 3 SCAR 13.9
CC
3
Cov
0%
dbi_requires_bind_param
6.0
dbi_bind_param_attrs
6.0
type
2.0
CRAP 4.0
1 package Rose::DB::Object::Metadata::Column::Pg::Bytea;
2  
3 use strict;
4  
5 TRY: { local $@; eval { require DBD::Pg } } # ignore errors
6  
7 use Rose::DB::Object::Metadata::Column;
8 our @ISA = qw(Rose::DB::Object::Metadata::Column);
9  
10 our $VERSION = '0.784';
11  
12 sub type { 'bytea' }
13  
14 sub dbi_requires_bind_param
15 {
16 my($self, $db) = @_;
17 return $db->driver eq 'pg' ? 1 : 0;
18 }
19  
20 sub dbi_bind_param_attrs
21 {
22 my($self, $db) = @_;
23 return $db->driver eq 'pg' ? { pg_type => DBD::Pg::PG_BYTEA() } : {};
24 }
25  
26 1;
27  
28 __END__