summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-07-01 15:08:30 +0200
committermkanat%bugzilla.org <>2008-07-01 15:08:30 +0200
commitd01126162b7ce20025e0eadad34115fbd4080fda (patch)
treee541183c150cb5d48c1544583085852a6147c69e /Bugzilla/DB
parentb86a9d09a129d63f96572b285839584ce402d5ce (diff)
downloadbugzilla-d01126162b7ce20025e0eadad34115fbd4080fda.tar.gz
bugzilla-d01126162b7ce20025e0eadad34115fbd4080fda.tar.xz
Bug 421264: Fix 'usemenuforusers' on Oracle (fix empty string replacement)
Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Oracle.pm9
1 files changed, 7 insertions, 2 deletions
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;