[BUGFIX] No error messages for own queries
authorNicole Cordes <nicole@cordes.co>
Fri, 23 Nov 2012 20:29:39 +0000 (21:29 +0100)
committerXavier Perseguers <xavier@typo3.org>
Sat, 24 Nov 2012 19:43:00 +0000 (20:43 +0100)
At the moment there isn't any error message return because the
initialisation of lastHandlerKey is missing.

Change-Id: I69a8a6dc2eff38a67605c8e8810e7b30bdd92c29
Fixes: #43254
Releases: 6.0, 4.7, 4.5
Reviewed-on: http://review.typo3.org/16702
Reviewed-by: Jigal van Hemert
Reviewed-by: Anja Leichsenring
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php

index a639df1..5130e4e 100644 (file)
@@ -2434,6 +2434,7 @@ class DatabaseConnection extends \TYPO3\CMS\Core\Database\DatabaseConnection {
                        $sqlResult->TYPO3_DBAL_handlerType = 'userdefined';
                        break;
                }
+               $this->lastHandlerKey = '_DEFAULT';
                if ($this->printErrors && $this->sql_error()) {
                        debug(array($this->lastQuery, $this->sql_error()));
                }