From 4a5473c62f941d91bf77064bedf1b0bdd2d1c05e Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Tue, 23 Aug 2016 23:37:50 +0200 Subject: [PATCH] [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 <info@typo3.com> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- typo3/sysext/dbal/Classes/Database/DatabaseConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- GitLab