Skip to content

Commit 398c175

Browse files
Fix Adapter\Pdo\Mysql::closeConnection on non-default ports
Removing the now redundant code.
1 parent 6c72d65 commit 398c175

File tree

1 file changed

+0
-8
lines changed
  • lib/internal/Magento/Framework/DB/Adapter/Pdo

1 file changed

+0
-8
lines changed

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -567,14 +567,6 @@ protected function _query($sql, $bind = [])
567567
$triesCount++;
568568
$this->closeConnection();
569569

570-
/**
571-
* _connect() function does not allow port parameter, so put the port back with the host
572-
*/
573-
if (!empty($this->_config['port'])) {
574-
$this->_config['host'] = implode(':', [$this->_config['host'], $this->_config['port']]);
575-
unset($this->_config['port']);
576-
}
577-
578570
$this->_connect();
579571
}
580572

0 commit comments

Comments
 (0)