This commit is contained in:
2021-02-24 18:34:57 +08:00
parent 22148402b6
commit 9024c7c3ab
21 changed files with 245 additions and 349 deletions
+1 -2
View File
@@ -22,8 +22,7 @@ class NotLikeCondition extends Condition
if (!is_string($this->value)) {
$this->value = array_shift($this->value);
}
$this->value = Str::encode($this->value);
return $this->column . ' NOT LIKE \'%' . $this->value . '%\'';
return $this->column . ' NOT LIKE \'%' . addslashes($this->value) . '%\'';
}
}