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