From d01126162b7ce20025e0eadad34115fbd4080fda Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 1 Jul 2008 13:08:30 +0000 Subject: Bug 421264: Fix 'usemenuforusers' on Oracle (fix empty string replacement) Patch By Xiaoou Wu r=mkanat, a=mkanat --- Bugzilla/DB/Oracle.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Bugzilla/DB/Oracle.pm') diff --git a/Bugzilla/DB/Oracle.pm b/Bugzilla/DB/Oracle.pm index 82d040dbf..d9579708e 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; -- cgit v1.2.3-24-g4f1b