mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/17176] Do not always create a new connection in database tests
PHPBB3-17176
This commit is contained in:
@@ -431,8 +431,8 @@ class postgres extends \phpbb\db\driver\driver
|
||||
*/
|
||||
protected function _sql_close(): bool
|
||||
{
|
||||
// Released resources are already closed, return true in this case
|
||||
if (!$this->db_connect_id instanceof \PgSql\Connection)
|
||||
// Skip if connection is already closed or not persistent
|
||||
if (!$this->persistency || !$this->db_connect_id instanceof \PgSql\Connection)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user