line |
true |
false |
branch |
48
|
0 |
0 |
defined $_[0]{'quote_char'} && length $_[0]{'quote_char'} ? : |
55
|
0 |
0 |
unless wantarray or defined $_[0]{'quote_char'} and length $_[0]{'quote_char'} |
58
|
4618 |
1706 |
defined $_ ? : |
59
|
2064 |
1098 |
ref $_[0]{'quote_char'} ? : |
102
|
1202 |
135113 |
$_[0]{'_dequalify_idents'} && !ref($_[1]) ? : |
123
|
133 |
7725 |
if (defined $offset) |
124
|
0 |
133 |
if $offset =~ /\D/ or $offset < 0 |
129
|
1674 |
6184 |
if (defined $limit) { } |
|
0 |
6184 |
elsif ($offset) { } |
130
|
0 |
1674 |
if $limit =~ /\D/ or $limit <= 0 |
139
|
1674 |
6184 |
if ($limit) { } |
146
|
1 |
1673 |
if ($limiter = $self->can('emulate_limit')) { } |
157
|
0 |
1673 |
unless my $dialect = $self->limit_dialect |
160
|
0 |
1673 |
unless $limiter = $self->can("_$dialect") |
166
|
0 |
1674 |
unless $rs_attrs |
181
|
3 |
7852 |
if $rs_attrs->{'for'} |
183
|
7855 |
0 |
wantarray ? : |
188
|
40270 |
22570 |
unless delete $$self{"${_}_bind"} |
199
|
1 |
1 |
if (ref $type eq 'SCALAR') { } |
217
|
2 |
9144 |
if (not $_[2] or ref $_[2] eq 'HASH' and not keys %{$_[2];}) |
223
|
0 |
2 |
if (($_[3] || {})->{'returning'}) |
238
|
42963 |
9721 |
unless $ref |
239
|
84 |
9637 |
if $ref eq 'SCALAR' |
241
|
8341 |
1296 |
if ($ref eq 'ARRAY') { } |
|
875 |
421 |
elsif ($ref eq 'HASH') { } |
|
421 |
0 |
elsif ($ref eq 'REF' and ref $$fields eq 'ARRAY') { } |
258
|
0 |
875 |
if (@toomany) |
262
|
1 |
2 |
if (lc $func eq 'distinct' and ref $rhs eq 'ARRAY' and @$rhs > 1) |
271
|
85 |
789 |
$as ? : |
303
|
478 |
9618 |
if ($arg->{'group_by'}) |
304
|
478 |
0 |
if (my($group_sql, @group_bind) = $self->_recurse_fields($arg->{'group_by'})) |
310
|
99 |
9997 |
if (defined $arg->{'having'}) |
316
|
3845 |
6251 |
if (defined $arg->{'order_by'}) |
327
|
6178 |
4012 |
if (ref $arg eq 'HASH' and not grep({$_ =~ /^-(?:desc|asc)/i;} keys %$arg)) { } |
344
|
647 |
915 |
$1 && uc $1 eq 'DESC' ? : |
352
|
8921 |
9576 |
if (my $ref = ref $_[1]) |
353
|
7851 |
1070 |
if ($ref eq 'ARRAY') { } |
|
0 |
1070 |
elsif ($ref eq 'HASH') { } |
|
1 |
2138 |
elsif ($ref eq 'REF' and ref ${$_[1];} eq 'ARRAY') { } |
372
|
1542 |
1740 |
unless defined $join_type |
374
|
1745 |
1537 |
$join_type ? : |
393
|
2 |
3282 |
ref $to eq 'ARRAY' ? : |
395
|
1742 |
1542 |
if (ref $to_jt eq 'HASH' and defined $$to_jt{-'join_type'}) |
402
|
2 |
3282 |
if (ref $to eq 'ARRAY') { } |
423
|
9008 |
15514 |
if (not ref $fromspec) { } |
|
3005 |
12509 |
elsif (ref $fromspec eq 'SCALAR') { } |
|
248 |
12261 |
elsif (ref $fromspec eq 'REF' and ref $$fromspec eq 'ARRAY') { } |
|
12261 |
0 |
elsif (ref $fromspec eq 'HASH') { } |
439
|
0 |
12261 |
if defined $toomuch |
455
|
13 |
3271 |
if (ref $cond eq 'HASH' and keys %$cond == 1 and (keys %$cond)[0] =~ /\./ and not ref((values %$cond)[0])) { } |
|
0 |
3271 |
elsif (ref $cond eq 'ARRAY') { } |
495
|
1 |
0 |
if (not ref $lhs or ref $lhs eq 'ARRAY') { } |
|
0 |
0 |
elsif (ref $lhs eq 'SCALAR') { } |
|
0 |
0 |
elsif (ref $lhs eq 'REF' and ref $$lhs eq 'ARRAY') { } |
497
|
1 |
0 |
ref $lhs ? : |
498
|
4 |
0 |
if (not ref $_) { } |
|
0 |
0 |
elsif (ref $_ eq 'SCALAR') { } |
|
0 |
0 |
elsif (ref $_ eq 'REF' and ref $$_ eq 'ARRAY') { } |
529
|
1 |
1 |
unless $$_->[0] =~ /^ \s* \( .* \) \s* $/sx |