line |
true |
false |
branch |
221
|
55 |
1211 |
if (@_) |
238
|
2 |
95 |
if ($self->{'_combine_search_and_count'}) |
244
|
86 |
9 |
unless $self->{'_bind_values'} |
256
|
0 |
99 |
unless $records |
261
|
4 |
363 |
if (not $self->{'count_all'} and $row->{'search_builder_count_all'}) |
269
|
0 |
99 |
if $records->err |
298
|
11 |
475 |
unless defined $self->{'items'} |
315
|
2 |
44 |
if ($self->{'_combine_search_and_count'}) |
321
|
37 |
7 |
unless $self->{'_bind_values'} |
322
|
0 |
44 |
unless $records |
325
|
0 |
44 |
if $records->err |
342
|
4 |
0 |
unless $self->{'_bind_values'} |
367
|
38 |
84 |
if $self->{'columns'} and @{$self->{'columns'};} |
423
|
33 |
146 |
if (keys %{$$self{'left_joins'};}) { } |
442
|
0 |
0 |
if ($self->RowsPerPage) { } |
444
|
0 |
0 |
if ($self->FirstRow != 0) |
465
|
204 |
693 |
if (@_) { } |
498
|
62 |
56 |
if $self->_isLimited > 0 |
509
|
5 |
113 |
if (my $clause = $self->_GroupClause) { } |
|
19 |
94 |
elsif (not $self->{'joins_are_distinct'} and $self->_isJoined) { } |
543
|
51 |
3 |
if $self->_isLimited > 0 |
549
|
13 |
41 |
if ($self->_isJoined) { } |
572
|
4 |
0 |
if $self->_isLimited > 0 |
579
|
0 |
4 |
if (my $clause = $self->_GroupClause) { } |
|
1 |
3 |
elsif (not $self->{'joins_are_distinct'} and $self->_isJoined) { } |
613
|
3 |
368 |
unless $self->_isLimited |
615
|
72 |
296 |
if $self->{'must_redo_search'} |
617
|
321 |
47 |
if ($self->{'itemscount'} < $self->_RecordCount) { } |
689
|
2 |
2 |
if $self->{'must_redo_search'} |
723
|
4 |
0 |
@_ % 2 ? : |
731
|
2 |
2 |
if $self->_isLimited > 0 |
739
|
4 |
0 |
if ($args{'Order'}) |
741
|
2 |
2 |
$args{'Order'} =~ /^des/i ? : |
746
|
4 |
0 |
$list ? : |
761
|
1 |
24 |
unless $self->_isLimited |
764
|
21 |
3 |
if $self->{'must_redo_search'} |
812
|
3 |
0 |
if (@_) |
813
|
3 |
0 |
if ($self->_Handle->HasSupportForCombineSearchAndCount) { } |
817
|
0 |
0 |
unless $unsupported_combine_search_and_count_logged |
970
|
64 |
1 |
unless ($args{'ENTRYAGGREGATOR'}) |
971
|
2 |
62 |
if ($args{'LEFTJOIN'}) { } |
982
|
65 |
0 |
if ($args{'OPERATOR'}) |
984
|
8 |
57 |
if ($args{'OPERATOR'} =~ /LIKE/i) { } |
|
1 |
56 |
elsif ($args{'OPERATOR'} =~ /STARTSWITH/i) { } |
|
1 |
55 |
elsif ($args{'OPERATOR'} =~ /ENDSWITH/i) { } |
|
10 |
45 |
elsif ($args{'OPERATOR'} =~ /\bIN$/i) { } |
994
|
3 |
7 |
if (&blessed($args{'VALUE'}) and $args{'VALUE'}->isa('DBIx::SearchBuilder')) { } |
|
7 |
0 |
elsif (ref $args{'VALUE'}) { } |
997
|
1 |
2 |
$args{'VALUE'}{'columns'} ? : |
1007
|
7 |
0 |
if ($args{'QUOTEVALUE'}) { } |
1022
|
10 |
55 |
if ($args{'OPERATOR'} =~ /IS/i) |
1028
|
43 |
22 |
if ($args{'QUOTEVALUE'}) |
1037
|
0 |
65 |
unless $Alias |
1044
|
65 |
0 |
if (defined $Alias) { } |
1075
|
2 |
63 |
if (defined $args{'LEFTJOIN'} and not defined $args{'ALIAS'}) |
1081
|
47 |
18 |
unless ($args{'ALIAS'}) |
1084
|
47 |
0 |
if ($args{'TABLE'} eq $self->Table) { } |
1108
|
2 |
63 |
if ($args{'LEFTJOIN'}) { } |
1109
|
2 |
0 |
if ($args{'ENTRYAGGREGATOR'}) |
1123
|
55 |
10 |
if ($self->_Handle->CaseSensitive and defined $args{'VALUE'} and $args{'VALUE'} ne "" and $args{'VALUE'} ne "''" and not $args{'OPERATOR'} =~ /IS/ || $args{'VALUE'} =~ /^null$/i) |
1125
|
43 |
12 |
unless ($args{'CASESENSITIVE'} or not $args{'QUOTEVALUE'}) |
1141
|
1 |
64 |
if ($self->{'_open_parens'}{$ClauseId}) |
1145
|
61 |
4 |
if (lc($args{'ENTRYAGGREGATOR'} || '') eq 'none' or not @$restriction) { } |
1193
|
0 |
110 |
if $where_clause |
1197
|
110 |
9 |
if $where_clause |
1211
|
17 |
110 |
if $result |
1214
|
133 |
10 |
if (ref $entry) { } |
1259
|
12 |
1 |
if ($self->_OrderClause ne $old_value) |
1273
|
115 |
54 |
unless $self->{'order_by'} |
1285
|
10 |
44 |
if ($rowhash{'ORDER'} and $rowhash{'ORDER'} =~ /^des/i) { } |
1287
|
0 |
10 |
if $nulls_order |
1291
|
0 |
44 |
if $nulls_order |
1293
|
0 |
54 |
unless defined $rowhash{'ALIAS'} |
1295
|
54 |
0 |
if (defined $rowhash{'ALIAS'} and $rowhash{'FIELD'} and $rowhash{'ORDER'}) |
1299
|
8 |
46 |
if (length $rowhash{'ALIAS'} and $rowhash{'FIELD'} =~ /^(.*\()(.*\))$/) |
1305
|
0 |
54 |
$clause ? : |
1306
|
54 |
0 |
if length $rowhash{'ALIAS'} |
1311
|
54 |
0 |
if $clause |
1330
|
5 |
0 |
if ($self->_GroupClause ne $old_value) |
1343
|
138 |
14 |
unless $self->{'group_by'} |
1347
|
0 |
14 |
unless my $part = $self->CombineFunctionWithField(%$row) |
1350
|
0 |
14 |
if $clause |
1354
|
0 |
14 |
unless $clause |
1379
|
0 |
6 |
@_ % 2 ? : |
1385
|
0 |
6 |
if $self->_Handle->QuoteTableNames |
1386
|
0 |
0 |
do {
lc $type eq 'left'
} ? : |
|
0 |
6 |
$type ? : |
1397
|
1 |
5 |
if ($args{'DISTINCT'} and not defined $self->{'joins_are_distinct'}) { } |
|
5 |
0 |
elsif (not $args{'DISTINCT'}) { } |
1494
|
5 |
188 |
if (@_ and ($_[0] || 0) != $self->{'show_rows'}) |
1521
|
2 |
1 |
if ($self->FirstRow - $self->RowsPerPage > 0) { } |
1568
|
13 |
135 |
if (@_ and ($_[0] || 1) != $self->{'first_row'} + 1) |
1605
|
7 |
62 |
unless $self->_isLimited |
1607
|
47 |
15 |
if ($self->{'must_redo_search'}) |
1608
|
2 |
45 |
if ($self->RowsPerPage) { } |
1633
|
0 |
48 |
unless $self->_isLimited |
1638
|
46 |
2 |
if ($self->{'must_redo_search'} or $self->RowsPerPage and not $self->{'count_all'}) { } |
|
1 |
1 |
elsif ($self->RowsPerPage) { } |
1668
|
4 |
5 |
unless $self->Count |
1670
|
3 |
2 |
if ($self->_ItemsCounter == $self->Count) { } |
1748
|
64 |
2 |
unless (defined $column or exists $args{'AS'}) |
1749
|
60 |
4 |
if ($args{'FIELD'} and $args{'ALIAS'} eq 'main' and !$args{'TABLE'} || $args{'TABLE'} eq $self->Table) { } |
1756
|
24 |
36 |
if ($self->{'columns'}) |
1758
|
21 |
3 |
if (grep((index($_, $suffix, -length($suffix)) >= 0), @{$$self{"columns"};})) |
1767
|
66 |
2 |
defined $column ? : |
1844
|
9 |
140 |
unless ($args{'FIELD'}) |
1849
|
109 |
31 |
unless $args{'FUNCTION'} |
1852
|
0 |
31 |
if ($func =~ /^DISTINCT\s*COUNT$/i) { } |
|
26 |
5 |
elsif ($func =~ s/\?/$field/g) { } |
|
1 |
7 |
elsif (not $func =~ /\(/ and lc $func ne 'null') { } |
1897
|
1 |
0 |
unless grep {/^main\.\*$/;} @{$$self{"columns"};} |
1928
|
0 |
0 |
unless my $table = $args{'TABLE'} |
1929
|
0 |
0 |
unless my $field = $args{'FIELD'} |
1944
|
53 |
341 |
if @_ |
1963
|
0 |
183 |
if @_ |
1976
|
0 |
167 |
$QueryHint ? : |
1987
|
32 |
144 |
if ($args{'PreferBind'}) |