From: Christian Kuhn Date: Tue, 23 Aug 2016 21:37:50 +0000 (+0200) Subject: [BUGFIX] ext:dbal Usage of dropped constant TYPO3_db X-Git-Tag: TYPO3_8-3-0~15 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/4a5473c62f941d91bf77064bedf1b0bdd2d1c05e?hp=84ab41333988a4217fd496a3d3063db537483ada [BUGFIX] ext:dbal Usage of dropped constant TYPO3_db Usage of TYPO3_db constant prevents successful connection, use database name directly instead. Change-Id: I9017db927a8c58b5573964ad61ecce5c264abb34 Resolves: #77613 Releases: master Reviewed-on: https://review.typo3.org/49567 Tested-by: Bamboo TYPO3com Reviewed-by: Georg Ringer Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn --- diff --git a/typo3/sysext/dbal/Classes/Database/DatabaseConnection.php b/typo3/sysext/dbal/Classes/Database/DatabaseConnection.php index 0c8b92b516e3..296e210c91af 100644 --- a/typo3/sysext/dbal/Classes/Database/DatabaseConnection.php +++ b/typo3/sysext/dbal/Classes/Database/DatabaseConnection.php @@ -2697,7 +2697,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection // Getting real list of tables: switch ($this->handlerCfg['_DEFAULT']['type']) { case 'native': - $tables_result = $this->query('SHOW TABLE STATUS FROM `' . TYPO3_db . '`'); + $tables_result = $this->query('SHOW TABLE STATUS FROM `' . $this->handlerCfg['_DEFAULT']['config']['database'] . '`'); if (!$this->sql_error()) { while ($theTable = $this->sql_fetch_assoc($tables_result)) { $whichTables[$theTable['Name']] = $theTable;