summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;