This commit is contained in:
2021-11-09 11:15:43 +08:00
parent f3a7789184
commit 714df3dda4
+2
View File
@@ -212,6 +212,8 @@ trait Builder
{
$_array = [];
foreach ($condition as $key => $value) {
if (is_null($value)) continue;
$value = is_numeric($value) ? $value : '\'' . $value . '\'';
if (!is_numeric($key)) {
$_array[] = sprintf('%s = %s', $key, $value);