This commit is contained in:
2023-04-25 17:05:06 +08:00
parent 1793fa3667
commit 84568c504a
+2 -4
View File
@@ -186,10 +186,8 @@ class SqlBuilder extends Component
if (is_null($value)) {
return $keys;
}
if (
str_starts_with($value, '+ ') ||
str_starts_with($value, '- ')
) {
if (is_string($value) && (str_starts_with($value, '+ ') ||
str_starts_with($value, '- '))) {
$keys[] = $key . '=' . $key . ' ' . $value;
} else {
$this->query->bindParam(':update' . $key . $order, $value);