diff --git a/src/Pool.php b/src/Pool.php index bec00e7..32b5270 100644 --- a/src/Pool.php +++ b/src/Pool.php @@ -29,7 +29,7 @@ final class Pool extends ConnectionPool implements Link * @param ConnectionConfig $config * @param int $maxConnections * @param int $idleTimeout - * @param bool $resetConnections True to automatically execute RESET ALL on a connection before use. + * @param bool $resetConnections True to automatically execute DISCARD ALL on a connection before use. * @param Connector|null $connector */ public function __construct( @@ -80,7 +80,7 @@ protected function pop(): \Generator \assert($connection instanceof Connection); if ($this->resetConnections) { - yield $connection->query("RESET ALL"); + yield $connection->query("DISCARD ALL"); } return $connection;