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
+2 -1
View File
@@ -1,5 +1,6 @@
<?php
declare(strict_types=1);
namespace Database\Condition;
/**
@@ -22,7 +23,7 @@ class HashCondition extends Condition
if ($value === null) {
continue;
}
$array[] = $this->resolve($key, $value);
$array[] = sprintf('%s=%s', $key, addslashes($value));
}
return implode(' AND ', $array);
}