summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/DB/Oracle.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/DB/Oracle.pm b/Bugzilla/DB/Oracle.pm
index 83ece2a05..23b97a0d2 100644
--- a/Bugzilla/DB/Oracle.pm
+++ b/Bugzilla/DB/Oracle.pm
@@ -149,6 +149,13 @@ sub sql_string_concat {
return 'CONCAT(' . join(', ', @params) . ')';
}
+sub sql_string_until {
+ my ($self, $string, $substring) = @_;
+ return "SUBSTR($string, 1, "
+ . $self->sql_position($substring, $string)
+ . " - 1)";
+}
+
sub sql_to_days {
my ($self, $date) = @_;