Skip to content

Commit 72ccd84

Browse files
karyna-tandrewbess
authored andcommitted
Added PDO::ATTR_STRINGIFY_FETCHES logic
1 parent fea0bba commit 72ccd84

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
@@ -420,6 +420,10 @@ protected function _connect()
420420
$this->_config['driver_options'][\PDO::MYSQL_ATTR_MULTI_STATEMENTS] = false;
421421
}
422422

423+
if (!isset($this->_config['driver_options'][\PDO::ATTR_STRINGIFY_FETCHES])) {
424+
$this->_config['driver_options'][\PDO::ATTR_STRINGIFY_FETCHES] = true;
425+
}
426+
423427
$this->logger->startTimer();
424428
parent::_connect();
425429
$this->logger->logStats(LoggerInterface::TYPE_CONNECT, '');

0 commit comments

Comments
 (0)