line |
true |
false |
branch |
24
|
3 |
29 |
if $self->{'join'} and ref $self->{'join'} ne 'ARRAY' |
39
|
32 |
0 |
if (@columns) |
46
|
7 |
25 |
if (my $joins = $self->{'join'}) |
52
|
1 |
31 |
if (my $where = $params{'where'}) |
53
|
1 |
0 |
unless (&Scalar::Util::blessed($where)) |
61
|
1 |
0 |
if (my $where_sql = $where->to_sql) |
67
|
4 |
28 |
if (my $group_bys = $params{'group_by'}) |
68
|
3 |
1 |
unless ref $group_bys eq 'ARRAY' |
75
|
2 |
4 |
ref $group_by ? : |
81
|
1 |
31 |
if (my $having = $params{'having'}) |
82
|
1 |
0 |
unless (&Scalar::Util::blessed($having)) |
90
|
1 |
0 |
if (my $having_sql = $having->to_sql) |
96
|
8 |
24 |
if (my $order_by = $params{'order_by'}) |
98
|
7 |
1 |
if (ref $order_by) { } |
99
|
6 |
1 |
if (ref $order_by eq 'ARRAY') { } |
|
1 |
0 |
elsif (ref $order_by eq 'SCALAR') { } |
104
|
1 |
6 |
if (ref $value) { } |
108
|
1 |
5 |
unless defined $value |
110
|
4 |
2 |
if ($order_type eq 'ASC' or $order_type eq 'DESC') { } |
118
|
1 |
6 |
if (ref $key eq 'SCALAR') { } |
140
|
5 |
27 |
if (defined(my $limit = $params{'limit'})) |
141
|
1 |
4 |
unless $limit =~ /^[0-9]+$/ |
145
|
3 |
29 |
if (defined(my $offset = $params{'offset'})) |
146
|
1 |
2 |
unless $offset =~ /^[0-9]+$/ |
150
|
1 |
31 |
if ($params{'for_update'}) |
163
|
0 |
31 |
unless (shift())->{'bind'} |
187
|
1 |
62 |
if (ref $column eq 'SCALAR') { } |
|
3 |
59 |
elsif (ref $column eq 'HASH') { } |
196
|
1 |
1 |
if (ref $$value eq 'ARRAY') { } |
209
|
2 |
1 |
ref $$column{-'col'} ? : |
222
|
2 |
18 |
if (ref $column eq 'HASH') { } |
|
1 |
17 |
elsif (ref $column eq 'SCALAR') { } |
246
|
3 |
6 |
if (my $subjoins = $join->{'join'}) |
247
|
0 |
3 |
unless ref $subjoins eq 'ARRAY' |
258
|
25 |
10 |
unless $joins and @$joins |
262
|
9 |
2 |
if (my $join_columns = $join_params->{'columns'}) |
268
|
6 |
3 |
$join_params->{'as'} ? : |
271
|
3 |
8 |
if (my $subjoins = $join_params->{'join'}) |
272
|
0 |
3 |
unless ref $subjoins eq 'ARRAY' |
285
|
0 |
10 |
unless ref $joins eq 'ARRAY' |
296
|
3 |
8 |
if (my $subjoin = $join_params->{'join'}) |