[BUGFIX] Insert rows only once in exec_INSERTmultipleRows 85/21085/2
authorJigal van Hemert <jigal@xs4all.nl>
Wed, 15 May 2013 19:07:50 +0000 (21:07 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 14 Jun 2013 00:13:19 +0000 (02:13 +0200)
commitaeba1e646b86eff8ca0103ee3e37d20951f094cc
tree8846bdb2119ba900287403c4e693526fafdd83e1
parentdb9efd32b4dfad2952f2725b53fb5e4522740b74
[BUGFIX] Insert rows only once in exec_INSERTmultipleRows

For native handler types multiple rows can be inserted using the mysql
INSERTmultipleRows API call. When another handler was used, the operation
was done twice, due to a missing else after the native handler condition.
This resulted in two database records for every INSERT statement.

The patch adds the missing else branch for the condition, preventing
the second run that was only meant to handle non-native handler types.

Change-Id: Ibab98a0c73b379bac063c8d1c19e30e93f38faf4
Resolves: #48220
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Related: #34327
Reviewed-on: https://review.typo3.org/21085
Tested-by: Alexander Opitz
Reviewed-by: Alexander Opitz
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php