eee
This commit is contained in:
+3
-2
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user