[open-ils-commits] r9814 -
branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jun 11 12:07:32 EDT 2008
Author: erickson
Date: 2008-06-11 12:07:30 -0400 (Wed, 11 Jun 2008)
New Revision: 9814
Modified:
branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/metabib.pm
Log:
wrapping array items in quotes so empty chars will be valid stored proc array elements
Modified: branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/metabib.pm
===================================================================
--- branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/metabib.pm 2008-06-11 16:04:19 UTC (rev 9813)
+++ branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/metabib.pm 2008-06-11 16:07:30 UTC (rev 9814)
@@ -2413,13 +2413,13 @@
my $param_search_ou = $ou;
my $param_depth = $args{depth}; $param_depth = 'NULL' unless (defined($param_depth) and length($param_depth) > 0 );
my $param_searches = OpenSRF::Utils::JSON->perl2JSON( \%stored_proc_search_args ); $param_searches =~ s/\$//go; $param_searches = '$$'.$param_searches.'$$';
- my $param_statuses = '$${' . join(',', map { s/\$//go; $_ } @statuses) . '}$$';
- my $param_audience = '$${' . join(',', map { s/\$//go; $_ } @aud) . '}$$';
- my $param_language = '$${' . join(',', map { s/\$//go; $_ } @lang) . '}$$';
- my $param_lit_form = '$${' . join(',', map { s/\$//go; $_ } @lit_form) . '}$$';
- my $param_types = '$${' . join(',', map { s/\$//go; $_ } @types) . '}$$';
- my $param_forms = '$${' . join(',', map { s/\$//go; $_ } @forms) . '}$$';
- my $param_vformats = '$${' . join(',', map { s/\$//go; $_ } @vformats) . '}$$';
+ my $param_statuses = '$${' . join(',', map { s/\$//go; "\"$_\""} @statuses) . '}$$';
+ my $param_audience = '$${' . join(',', map { s/\$//go; "\"$_\"" } @aud) . '}$$';
+ my $param_language = '$${' . join(',', map { s/\$//go; "\"$_\""} @lang) . '}$$';
+ my $param_lit_form = '$${' . join(',', map { s/\$//go; "\"$_\"" } @lit_form) . '}$$';
+ my $param_types = '$${' . join(',', map { s/\$//go; "\"$_\""} @types) . '}$$';
+ my $param_forms = '$${' . join(',', map { s/\$//go; "\"$_\""} @forms) . '}$$';
+ my $param_vformats = '$${' . join(',', map { s/\$//go; "\"$_\"" } @vformats) . '}$$';
my $param_pref_lang = $args{preferred_language}; $param_pref_lang =~ s/\$//go; $param_pref_lang = '$$'.$param_pref_lang.'$$';
my $param_pref_lang_multiplier = $args{preferred_language_weight}; $param_pref_lang_multiplier ||= 'NULL';
my $param_sort = $args{'sort'}; $param_sort =~ s/\$//go; $param_sort = '$$'.$param_sort.'$$';
More information about the open-ils-commits
mailing list