From: mkanat%bugzilla.org <> Date: Tue, 1 Jul 2008 13:08:30 +0000 (+0000) Subject: Bug 421264: Fix 'usemenuforusers' on Oracle (fix empty string replacement) X-Git-Tag: bugzilla-3.3.1~279 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d01126162b7ce20025e0eadad34115fbd4080fda;p=thirdparty%2Fbugzilla.git Bug 421264: Fix 'usemenuforusers' on Oracle (fix empty string replacement) Patch By Xiaoou Wu r=mkanat, a=mkanat --- diff --git a/Bugzilla/DB/Oracle.pm b/Bugzilla/DB/Oracle.pm index 82d040dbff..d9579708e0 100644 --- a/Bugzilla/DB/Oracle.pm +++ b/Bugzilla/DB/Oracle.pm @@ -294,8 +294,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;