[BUGFIX] MySQLi: Allow persistent connections again 13/22813/2
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 5 Aug 2013 08:31:20 +0000 (10:31 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 6 Aug 2013 15:52:38 +0000 (17:52 +0200)
For a persistent connection the hostname needs to be
prefixed with "p:". This was already prepared in the
code, however that variable was not yet used.

Change-Id: I01e20fd69239d0772ca9b371af0058316541f2a9
Resolves: #50781
Releases: 6.2, 6.1
Reviewed-on: https://review.typo3.org/22813
Reviewed-by: Philipp Gampe
Tested-by: Stefan Neufeind
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Database/DatabaseConnection.php

index f34b98a..5ee7fb9 100644 (file)
@@ -1183,7 +1183,7 @@ class DatabaseConnection {
 
                $this->link = mysqli_init();
                $connected = $this->link->real_connect(
-                       $this->databaseHost,
+                       $host,
                        $this->databaseUsername,
                        $this->databaseUserPassword,
                        NULL,