eee
This commit is contained in:
+1
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user