This commit is contained in:
2021-04-27 10:40:01 +08:00
parent 26dc63f63a
commit 3a3afc2861
+4 -2
View File
@@ -10,12 +10,11 @@ declare(strict_types=1);
namespace Database;
use Snowflake\Abstracts\Component;
use Exception;
use PDO;
use PDOStatement;
use Snowflake\Abstracts\Component;
use Snowflake\Core\Json;
use Snowflake\Exception\ComponentException;
/**
* Class Command
@@ -126,6 +125,9 @@ class Command extends Component
} else {
$result = $this->search($type);
}
if (microtime(true) - $time >= 0.03) {
$this->warning('get client use time ' . (microtime(true) - $time));
}
if ($this->prepare) {
$this->prepare->closeCursor();
}