Skip to content

Commit

Permalink
fix LIKE query
Browse files Browse the repository at this point in the history
  • Loading branch information
BMTmohammedtaha committed Nov 10, 2023
1 parent 2e1b082 commit f141c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Build/QueryBuilderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function whereInBetween($attribute): string|null

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

public function whereFromColumnTable($attribute)
Expand Down

0 comments on commit f141c36

Please sign in to comment.