This commit is contained in:
2021-01-14 14:24:02 +08:00
parent 16a04db3cc
commit 1289cf142e
+1 -1
View File
@@ -83,7 +83,7 @@ trait QueryTrait
*/
public function locate(string $column, string $value): static
{
$this->where[] = 'LOCATE(' . $column . ',\'' . addslashes($value) . '\')';
$this->where[] = 'LOCATE(' . $column . ',\'' . addslashes($value) . '\') > 0';
return $this;
}