[BUGFIX] Insert rows only once in exec_INSERTmultipleRows 08/21408/2
authorJigal van Hemert <jigal@xs4all.nl>
Fri, 14 Jun 2013 00:30:42 +0000 (02:30 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 22 Jun 2013 23:19:49 +0000 (01:19 +0200)
commit8f889ad7a34edd8c04fd93cf686247b0e0abcbe8
tree319e2d513de84924d37dfa4c0aa9efa3ebcbfa57
parent0e906fa874f4d8d05a303357f1b99356b55b0ff3
[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
Reviewed-on: https://review.typo3.org/21408
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/dbal/class.ux_t3lib_db.php