line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
1969
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
93
|
|
2
|
3
|
|
|
3
|
|
10
|
use warnings; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
393
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package UR::DataSource::RDBMS::Operator::NotEquals; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub generate_sql_for { |
7
|
12
|
|
|
12
|
0
|
25
|
my($class, $expr_sql, $val, $escape) = @_; |
8
|
|
|
|
|
|
|
|
9
|
12
|
|
|
|
|
16
|
my $sql; |
10
|
|
|
|
|
|
|
my @sql_params; |
11
|
12
|
50
|
|
|
|
51
|
if (UR::DataSource::RDBMS->_value_is_null($val)) { |
12
|
0
|
|
|
|
|
0
|
$sql = "$expr_sql IS NOT NULL"; |
13
|
|
|
|
|
|
|
} else { |
14
|
12
|
|
|
|
|
41
|
$sql = sprintf("( %s != ? or %s is null)", $expr_sql, $expr_sql); |
15
|
12
|
|
|
|
|
27
|
@sql_params = ($val); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
12
|
|
|
|
|
40
|
return ($sql, @sql_params); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |