return "NULL" unless defined $str;
return "current_date" if $str =~ /current_date/;
- $str =~ s/'/''/g;
+ $str =~ s/\'/\'\'/g;
return "'$str'";
}
$main::lxdebug->leave_sub(2);
- return $result;
+ return wantarray ? @{ $result } : $result;
}
sub selectall_array_query {