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
+4 -2
View File
@@ -4,6 +4,8 @@ declare(strict_types=1);
namespace Database\Condition;
use JetBrains\PhpStorm\Pure;
/**
* Class DefaultCondition
* @package Database\Condition
@@ -14,9 +16,9 @@ class DefaultCondition extends Condition
/**
* @return string
*/
public function builder(): string
#[Pure] public function builder(): string
{
return $this->resolve($this->column, $this->value, $this->opera);
return sprintf('%s %s %s', $this->column, $this->opera, addslashes($this->value));
}
}