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

Bugzilla/DB/Oracle.pm

index 255ece03b48417ea0eefaa3b396e6f008eb37c7b..9e8ea73020140dfe035588f758c5308d8d96a29f 100644 (file)
@@ -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;