[BUGFIX] Pass original DBALException along with SqlErrorException 88/59888/3
authorChristian Futterlieb <christian@futterlieb.ch>
Wed, 6 Mar 2019 17:53:01 +0000 (18:53 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Sat, 9 Mar 2019 15:27:01 +0000 (16:27 +0100)
commit43d160054a249c04e77d174a41cbf2e96951c1ab
treee82d472f0cdc1ece9aa589d5a76f3eba03c7ae3c
parent08aa12030171cc4437ef5931919a61ce7395a1f8
[BUGFIX] Pass original DBALException along with SqlErrorException

When a
TYPO3\CMS\Extbase\Persistence\Generic\Storage\Exception\SqlErrorException
is thrown, pass the previous exception as 3rd parameter to the
constructor, to get the real reason for the exception.

Resolves: #87852
Releases: master, 9.5, 8.7
Change-Id: I20d711c0038b51a1d0c12d9a975d8c0da1f510f4
Reviewed-on: https://review.typo3.org/c/59888
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Christian Futterlieb <christian@futterlieb.ch>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php