update to build 419

This commit is contained in:
2021-09-11 11:07:23 +08:00
parent 5063421364
commit 07391810ff
4 changed files with 30 additions and 3 deletions

View File

@@ -28,8 +28,8 @@ class ConsoleApplication extends Application
{
private static $obj = null;
const VERSION_ID = 418;
const VERSION = "2.5.2";
const VERSION_ID = 419;
const VERSION = "2.5.3";
/**
* @throws InitException

View File

@@ -93,6 +93,7 @@ class DB
if (!is_array($params)) $params = [$params];
Console::debug("MySQL: " . $line . " | " . implode(", ", $params));
try {
if (SqlPoolStorage::$sql_pool === null) throw new DbException("未连接到任何数据库!");
$conn = SqlPoolStorage::$sql_pool->getConnection();
if ($conn === false) {
SqlPoolStorage::$sql_pool->putConnection(null);