Fix ILIKE regex for oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
c9430fbb77
commit
bb30b876ae
|
@ -166,6 +166,6 @@ class OCIExpressionBuilder extends ExpressionBuilder {
|
|||
public function iLike($x, $y, $type = null) {
|
||||
$x = $this->helper->quoteColumnName($x);
|
||||
$y = $this->helper->quoteColumnName($y);
|
||||
return new QueryFunction('REGEXP_LIKE('.$x.', \'^\' || REPLACE('.$y.', \'%\', \'.*\') || \'$\', \'i\')');
|
||||
return new QueryFunction('REGEXP_LIKE(' . $x . ', \'^\' || REPLACE(REPLACE(' . $y . ', \'%\', \'.*\'), \'_\', \'.\') || \'$\', \'i\')');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue