变更
This commit is contained in:
+2
-4
@@ -186,10 +186,8 @@ class SqlBuilder extends Component
|
|||||||
if (is_null($value)) {
|
if (is_null($value)) {
|
||||||
return $keys;
|
return $keys;
|
||||||
}
|
}
|
||||||
if (
|
if (is_string($value) && (str_starts_with($value, '+ ') ||
|
||||||
str_starts_with($value, '+ ') ||
|
str_starts_with($value, '- '))) {
|
||||||
str_starts_with($value, '- ')
|
|
||||||
) {
|
|
||||||
$keys[] = $key . '=' . $key . ' ' . $value;
|
$keys[] = $key . '=' . $key . ' ' . $value;
|
||||||
} else {
|
} else {
|
||||||
$this->query->bindParam(':update' . $key . $order, $value);
|
$this->query->bindParam(':update' . $key . $order, $value);
|
||||||
|
|||||||
Reference in New Issue
Block a user