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
29
29
* @param ConnectionConfig $config
30
30
* @param int $maxConnections
31
31
* @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.
33
33
* @param Connector|null $connector
34
34
*/
35
35
public function __construct (
@@ -80,7 +80,7 @@ protected function pop(): \Generator
80
80
\assert ($ connection instanceof Connection);
81
81
82
82
if ($ this ->resetConnections ) {
83
- yield $ connection ->query ("RESET ALL " );
83
+ yield $ connection ->query ("DISCARD ALL " );
84
84
}
85
85
86
86
return $ connection ;
You can’t perform that action at this time.
0 commit comments