line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
103
|
|
|
103
|
|
61923
|
use strict; |
|
103
|
|
|
|
|
165
|
|
|
103
|
|
|
|
|
3195
|
|
2
|
103
|
|
|
103
|
|
386
|
use warnings; |
|
103
|
|
|
|
|
170
|
|
|
103
|
|
|
|
|
15447
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package UR::DataSource::RDBMS::Operator::Equals; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub generate_sql_for { |
7
|
1532
|
|
|
1532
|
0
|
2935
|
my($class, $expr_sql, $val, $escape) = @_; |
8
|
|
|
|
|
|
|
|
9
|
1532
|
|
|
|
|
1992
|
my $sql; |
10
|
|
|
|
|
|
|
my @sql_params; |
11
|
1532
|
100
|
|
|
|
5511
|
if (UR::DataSource::RDBMS->_value_is_null($val)) { |
12
|
11
|
|
|
|
|
24
|
$sql = "$expr_sql IS NULL"; |
13
|
|
|
|
|
|
|
} else { |
14
|
1521
|
|
|
|
|
2577
|
$sql = "$expr_sql = ?"; |
15
|
1521
|
|
|
|
|
3101
|
@sql_params = ($val); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
1532
|
|
|
|
|
5243
|
return ($sql, @sql_params); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |