Commit c9a255eb authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 477745: [Oracle] Search doesn't work because of sql_string_until - Patch by…

Bug 477745: [Oracle] Search doesn't work because of sql_string_until - Patch by Xiaoou <xiaoou.wu@oracle.com> r/a=mkanat
parent b4765a3c
......@@ -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) = @_;
......
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