This commit is contained in:
2025-12-31 00:19:29 +08:00
parent c943d6258b
commit 89d5b604d6
5 changed files with 26 additions and 18 deletions
+3 -2
View File
@@ -108,7 +108,7 @@ class SqlBuilder extends Component
private function __updateBuilder(array $string): string|bool
{
if (empty($string)) {
return Kiri::getLogger()->failure('None data update.');
return Kiri::getLogger()->logCategory('None data update.');
}
return 'UPDATE ' . $this->query->getFrom() . ' SET ' . implode(',', $string) . $this->make();
}
@@ -452,7 +452,8 @@ class SqlBuilder extends Component
}
} catch (\Throwable $e) {
// 忽略错误,返回默认值
}
$this->getLogger()->json_log($e);
}
// 默认返回 mysql
return 'mysql';
}