Skip to content

Commit b027714

Browse files
committed
Use DISCARD ALL instead of RESET ALL
Closes #34.
1 parent 7cf9d37 commit b027714

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Pool.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class Pool extends ConnectionPool implements Link
2929
* @param ConnectionConfig $config
3030
* @param int $maxConnections
3131
* @param int $idleTimeout
32-
* @param bool $resetConnections True to automatically execute RESET ALL on a connection before use.
32+
* @param bool $resetConnections True to automatically execute DISCARD ALL on a connection before use.
3333
* @param Connector|null $connector
3434
*/
3535
public function __construct(
@@ -80,7 +80,7 @@ protected function pop(): \Generator
8080
\assert($connection instanceof Connection);
8181

8282
if ($this->resetConnections) {
83-
yield $connection->query("RESET ALL");
83+
yield $connection->query("DISCARD ALL");
8484
}
8585

8686
return $connection;

0 commit comments

Comments
 (0)