Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-server
Commits
a952197c
Commit
a952197c
authored
Feb 05, 2020
by
Tifenn Guillas
Browse files
Fix like and not like operator
parent
2d10ddfa
Pipeline
#1962
passed with stages
in 4 minutes and 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Utils/Operator/Like.php
View file @
a952197c
...
...
@@ -51,6 +51,6 @@ class Like extends Operator
*/
public
function
getExpression
():
string
{
return
$this
->
expr
->
like
(
$this
->
column
,
$this
->
expr
->
literal
(
$this
->
value
));
return
$this
->
expr
->
like
(
$this
->
column
,
$this
->
expr
->
literal
(
'%'
.
$this
->
value
.
'%'
));
}
}
src/Utils/Operator/NotLike.php
View file @
a952197c
...
...
@@ -51,6 +51,6 @@ class NotLike extends Operator
*/
public
function
getExpression
():
string
{
return
$this
->
expr
->
notLike
(
$this
->
column
,
$this
->
expr
->
literal
(
$this
->
value
));
return
$this
->
expr
->
notLike
(
$this
->
column
,
$this
->
expr
->
literal
(
'%'
.
$this
->
value
.
'%'
));
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment