[BUGFIX] Deprecated function call mysql_list_dbs in dbal 90/26390/3
authorIngo Schmitt <is@marketing-factory.de>
Fri, 13 Dec 2013 17:09:37 +0000 (18:09 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 16 Jan 2014 22:26:03 +0000 (23:26 +0100)
replaced mysql_list_dbs by show databases query

Resolves: #53761
Releases: 6.2
Change-Id: I2b41b19aa900ba7eef33f2a990c8c029cbc1c08c
Reviewed-on: https://review.typo3.org/26390
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Oliver Klee
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php

index beab9c0..a87aae6 100644 (file)
@@ -2500,7 +2500,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
                $dbArr = array();
                switch ($this->handlerCfg['_DEFAULT']['type']) {
                        case 'native':
-                               $db_list = mysql_list_dbs($this->link);
+                               $db_list = mysql_query('SHOW DATABASES', $this->link);
                                while ($row = mysql_fetch_object($db_list)) {
                                        if ($this->sql_select_db($row->Database)) {
                                                $dbArr[] = $row->Database;