eee
This commit is contained in:
+1
-4
@@ -190,10 +190,7 @@ class SqlBuilder extends Component
|
|||||||
if (is_null($value)) {
|
if (is_null($value)) {
|
||||||
return $keys;
|
return $keys;
|
||||||
}
|
}
|
||||||
if (is_numeric($key)) {
|
if (preg_match('/^[+|-]\s\d+$/', (string)$value)) {
|
||||||
$this->query->pushParam($value);
|
|
||||||
$keys[] = $key . '= ?';
|
|
||||||
} else if (preg_match('/^[+|-]\s\d+$/', $value)) {
|
|
||||||
$keys[] = $key . '=' . $key . ' ' . $value;
|
$keys[] = $key . '=' . $key . ' ' . $value;
|
||||||
} else {
|
} else {
|
||||||
$this->query->pushParam($value);
|
$this->query->pushParam($value);
|
||||||
|
|||||||
Reference in New Issue
Block a user