[TYPO3-core] RFC #12858: Feature: Provide a DB API to insert multiple rows at once

Xavier Perseguers typo3 at perseguers.ch
Sun Jan 10 17:03:39 CET 2010


Hi,

> @Xavier: Could you take a look and figure out what needs to be done for
> dbal? If other db's don't handle extended inserts it would be easy to
> iterate over the rows and call exec_INSERTquery() each in dbal again.

I would suggest a few changes:

1) instead of testing whether $fields and $rows are array, force it in method signature (both new methods)
2) When writing the method for DBAL, make sure to use existing method $this->INSERTquery() instead of writing it yourself (in override of method INSERTmultipleRows)

Cheers

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en


More information about the TYPO3-team-core mailing list