[BUGFIX] Insert rows only once in exec_INSERTmultipleRows 06/21406/2
authorJigal van Hemert <jigal@xs4all.nl>
Fri, 14 Jun 2013 00:21:59 +0000 (02:21 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 22 Jun 2013 23:19:09 +0000 (01:19 +0200)
commit8ace4ccbe90a87d277d407a4d45e6fb5155a2b2e
tree1b627a8e02131fc3c0edecc308da314975b9ceaa
parentee255bd0d3bc4d403c5adc73bf0a018abb034761
[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/21406
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php