This commit is contained in:
2023-04-07 18:23:27 +08:00
parent 6d122c4ae1
commit 5d41c7219f
9 changed files with 339 additions and 328 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ class InCondition extends Condition
#[Pure] public function builder(): string
{
if (is_array($this->value)) {
return sprintf('%s IN (%s)', $this->column, implode(',', $this->value));
return $this->column . ' IN (' . implode(',', $this->value) . ')';
} else {
return sprintf('%s IN (%s)', $this->column, $this->value);
return $this->column . ' IN (' . $this->value . ')';
}
}