--- a/lib/CrashTest/Plugin/Storage/Sql/Utils.pm Sun Nov 20 20:57:40 2016 +0100
+++ b/lib/CrashTest/Plugin/Storage/Sql/Utils.pm Sat Nov 26 15:48:43 2016 +0100
@@ -36,7 +36,7 @@
# define a callback to collect values safely (without magic markers)
my $cb = sub {
my ($column, $this_op, $value) = @_;
- my $sql = join('', $column->stringify, $this_op, '?');
+ my $sql;
if($column->type eq "fuzzy") {
if ( $this_op =~ /!|NOT/ ) {
@@ -49,6 +49,11 @@
$sql = $column->name;
$sql =~ s/\s+\?op\?\s+/ $this_op /;
}
+
+ if(!defined($sql)) {
+ $sql = join('', $column->stringify, $this_op, '?');
+ }
+
push @values, $value;
return $sql;
};