Commit d0112616 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 421264: Fix 'usemenuforusers' on Oracle (fix empty string replacement)

Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat
parent b86a9d09
...@@ -294,8 +294,13 @@ sub adjust_statement { ...@@ -294,8 +294,13 @@ sub adjust_statement {
# Look for a LIMIT clause # Look for a LIMIT clause
($limit) = ($nonstring =~ m(/\* LIMIT (\d*) \*/)o); ($limit) = ($nonstring =~ m(/\* LIMIT (\d*) \*/)o);
push @result, $string; if(!length($string)){
push @result, $nonstring; push @result, EMPTY_STRING;
push @result, $nonstring;
} else {
push @result, $string;
push @result, $nonstring;
}
} }
my $new_sql = join "'", @result; my $new_sql = join "'", @result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment