Skip to content

Commit 4d18c9a

Browse files
author
vitaliyboyko
committed
ENGCOM-20434: Added accidentally removed code
1 parent 24382e3 commit 4d18c9a

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ protected function _connect()
384384
throw new \Zend_Db_Adapter_Exception('No host configured to connect');
385385
}
386386

387+
if (isset($this->_config['port'])) {
388+
throw new \Zend_Db_Adapter_Exception('Port must be configured within host parameter (like localhost:3306');
389+
}
390+
387391
unset($this->_config['port']);
388392

389393
if (strpos($this->_config['host'], '/') !== false) {

0 commit comments

Comments
 (0)