Skip to content

Commit f141c36

Browse files
fix LIKE query
1 parent 2e1b082 commit f141c36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Build/QueryBuilderTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function whereInBetween($attribute): string|null
200200

201201
public function whereLike($attribute): string|null
202202
{
203-
return $attribute['col'] . $this->syntax->getCommand('like', 1) . (new ValueBuilder(['%' . $attribute['like'] . '%']))->getAsOneLine();
203+
return $attribute['col'] . $this->syntax->getCommand('like', 1) . (new ValueBuilder(["'%" . $attribute['like'] . "%'"]))->getAsOneLine();
204204
}
205205

206206
public function whereFromColumnTable($attribute)

0 commit comments

Comments
 (0)