Cross-port:
a3cf362
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm
use OpenSRF::Utils::Logger qw($logger);
use Data::Dumper;
my $U = 'OpenILS::Application::AppUtils';
+use OpenSRF::Utils::Logger qw/$logger/;
my ${spc} = ' ' x 2;
sub subquery_callback {
my $self = shift;
my $value = shift;
my $wb = shift;
-
+
my $left_anchored = '';
my $right_anchored = '';
my $left_wb = 0;
$value =~ s/^[*\^]// if $left_anchored;
$value =~ s/[*\$]$// if $right_anchored;
- $value = quotemeta($value);
$value = '^' . $value if $left_anchored eq '^';
$value = "$value\$" if $right_anchored eq '$';
$value = '[[:<:]]' . $value if $left_wb && !$left_anchored;