File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments