This commit is contained in:
2025-02-17 16:29:10 +08:00
parent 0f0a3349fb
commit 51a585fcd4
+1 -4
View File
@@ -190,10 +190,7 @@ class SqlBuilder extends Component
if (is_null($value)) {
return $keys;
}
if (is_numeric($key)) {
$this->query->pushParam($value);
$keys[] = $key . '= ?';
} else if (preg_match('/^[+|-]\s\d+$/', $value)) {
if (preg_match('/^[+|-]\s\d+$/', (string)$value)) {
$keys[] = $key . '=' . $key . ' ' . $value;
} else {
$this->query->pushParam($value);