]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 421264: Fix 'usemenuforusers' on Oracle (fix empty string replacement)
authormkanat%bugzilla.org <>
Tue, 1 Jul 2008 13:08:30 +0000 (13:08 +0000)
committermkanat%bugzilla.org <>
Tue, 1 Jul 2008 13:08:30 +0000 (13:08 +0000)
Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat

Bugzilla/DB/Oracle.pm

index 82d040dbffc8835aab288e1f23837f26caf6a789..d9579708e05cd9c158368099def4376f5a6d1201 100644 (file)
@@ -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;