From: mkanat%bugzilla.org <> Date: Tue, 1 Jul 2008 13:10:29 +0000 (+0000) Subject: Bug 421264: Fix 'usemenuforusers' on Oracle (empty string replacement fix) X-Git-Tag: bugzilla-3.2rc1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bedef3dd3e3e15de6ec4417899c867bd6cae2235;p=thirdparty%2Fbugzilla.git Bug 421264: Fix 'usemenuforusers' on Oracle (empty string replacement fix) Patch By Xiaoou Wu r=mkanat, a=mkanat --- diff --git a/Bugzilla/DB/Oracle.pm b/Bugzilla/DB/Oracle.pm index 255ece03b4..9e8ea73020 100644 --- a/Bugzilla/DB/Oracle.pm +++ b/Bugzilla/DB/Oracle.pm @@ -280,8 +280,13 @@ sub adjust_statement { # Look for a LIMIT clause ($limit) = ($nonstring =~ m(/\* LIMIT (\d*) \*/)o); - push @result, $string; - push @result, $nonstring; + if(!length($string)){ + push @result, EMPTY_STRING; + push @result, $nonstring; + } else { + push @result, $string; + push @result, $nonstring; + } } my $new_sql = join "'", @result;