[BUGFIX] Cast return value of postProcessDatabaseInsert to integer 95/56195/2
authorSusanne Moog <susanne.moog@typo3.org>
Thu, 15 Mar 2018 14:03:13 +0000 (15:03 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 15 Mar 2018 21:26:35 +0000 (22:26 +0100)
commit733a40879dcc613500c5f8295761b0a8a015a0b9
tree4c3ab81176b30289e192def242114ce61f0d714f
parent284411c14271eead0fb7a172bebcad83d713478f
[BUGFIX] Cast return value of postProcessDatabaseInsert to integer

Connection::lastInsertId returns a string but
DataHandler::postProcessDatabaseInsert has a strict integer return
value, so the value has to be casted to integer on return.

Additionally, when using sqlserver doctrine fails to fetch the last
inserted id under certain circumstances. An additional retrieval
method was introduced to mitigate that error.

Resolves: #84219
Releases: master, 8.7
Change-Id: I94dc0dc964aef26380703f641691c6a80ec5180d
Reviewed-on: https://review.typo3.org/56195
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/DataHandling/DataHandler.php