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 bde28dc commit d12462c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Build/QueryBuilderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ public function whereInBetween($attribute): string|null

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

public function whereFromColumnTable($attribute)
Expand Down

0 comments on commit d12462c

Please sign in to comment.