line |
true |
false |
branch |
35
|
17 |
52 |
@_ == 1 ? : |
52
|
48 |
987 |
if exists $opts{$var} |
57
|
1 |
68 |
if exists $opts{'sql'} and exists $opts{'file'} |
61
|
66 |
2 |
if (defined $opts{'sql'}) { } |
|
1 |
1 |
elsif (my $f = $opts{'file'}) { } |
62
|
0 |
66 |
ref $opts{'sql'} ? : |
66
|
0 |
1 |
unless open my $fh, '<', $f |
81
|
65 |
2 |
unless $$self{'template_options'} |
83
|
0 |
67 |
unless $$self{'tt'} ||= 'Template'->new({'ABSOLUTE', 1, 'STRICT', 1, 'VARIABLES', {'query', $self, %{$$self{'variables'};}}, %{{} unless $$self{'template_options'};}}) |
108
|
8 |
5 |
unless @bind == 3 |
116
|
10 |
3 |
$bind[0] =~ /^\d+$/ ? : |
121
|
2 |
20 |
unless $_[0]{'bind_params'} |
132
|
1 |
3 |
if @_ |
140
|
8 |
11 |
if @_ |
148
|
2 |
8 |
if (@_) { } |
|
2 |
6 |
elsif (not $$self{'order'}) { } |
186
|
55 |
12 |
unless my $tr = $$self{'transformations'} |
189
|
12 |
0 |
if (ref $tr eq 'HASH') |
193
|
11 |
1 |
if (my $tr_name = $$self{'template_tr_name'}) |
195
|
10 |
1 |
unless exists $$tr{$tr_name} |
217
|
1 |
48 |
if defined $$self{'prefix'} |
218
|
2 |
47 |
if defined $$self{'suffix'} |
233
|
10 |
116 |
if exists $$self{'template_private_vars'} |
236
|
2 |
124 |
unless $$self{'tt'}->process($template, $vars, \$output) |
251
|
1 |
22 |
if $@ |
265
|
18 |
49 |
if (exists $$self{'processed_sql'}) { } |
274
|
1 |
48 |
if $$self{'squeeze_blank_lines'} |
286
|
0 |
17 |
unless my $tr = $$self{'transformations'} |