Open cashlo opened 6 years ago
I was going to use qw{ . .= , => }
as the list of operators because of usage like my $sql = sprintf "SELECT %s FROM %s" => $column, $table;
but decided to align with current behaviour.
This breaks a couple of tests, which apparently pass under 5.10 on Travis.
# Failed test 'ValuesAndExpressions::PreventSQLInjection - line 283 - Partial use of quote() and quote_identifier().'
# at t/30-policy.t line 22.
# Failed test 'ValuesAndExpressions::PreventSQLInjection - line 402 - Custom quoting method, ensure that defaults are disabled.'
# at t/30-policy.t line 22.
# Expected 1 violations, got 0.
This reduce false positive like
"update" eq $foo; $foo eq "update" && $bar; $foo ne "select" || $bar;