Don't quote ? placeholder

This commit is contained in:
Juan Pablo Vial
2022-09-09 15:37:50 -04:00
parent 758a4b7c7f
commit d4fecf977d

View File

@ -65,7 +65,7 @@ abstract class Insert extends Query implements InsertInterface
} }
public function addValue(int|string $value): InsertInterface public function addValue(int|string $value): InsertInterface
{ {
if (!is_numeric($value)) { if (!is_numeric($value) and $value !== '?') {
$value = "'{$value}'"; $value = "'{$value}'";
} }
$this->values []= $value; $this->values []= $value;