[BUGFIX] exec_INSERTmultipleRows doesn't check alternative handlers
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 8 Apr 2013 21:41:15 +0000 (23:41 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 9 Apr 2013 14:31:43 +0000 (16:31 +0200)
commitbd31d4c404f78b2022a4669bb565b3dfe2777dc6
tree3a73ee8f857e8af9ab52975063317758da1e8ebf
parentba0505557e19db088488a2d269e780353d321c98
[BUGFIX] exec_INSERTmultipleRows doesn't check alternative handlers

The function just passes the function call to it's parents insert
function when the type of the current handler is "native".
When using an alternative handler than "_DEFAULT" for a table, wich
connection is also "native", it will directly forward the call without
respecting my mapping for the table to another handler.

Similar to the other methods, this is solved by first fetching
the handler for the current table and then feeding the created
SQL string to mysql_query on given handler link.

The patch additionaly fixes db errors in 6.1 after mysqli switch.

Change-Id: I0c984b355916a99603ed72f0606e173608e4de81
Fixes: #34327
Releases: 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/9272
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/dbal/Classes/Database/DatabaseConnection.php