Task #96972
closedDeprecate QueryBuilder::execute()
100%
Description
doctrine/dbal already deprecated the combined 'execute()'
method in favour of the streamlined 'executeQuery()' and
'executeStatement()'. These method has been added to the
core facade QueryBuilder with #96247 with proper backport
so extension developer can adopt this and support two core
versions without deprecations or nasty workarounds.
With the raise of doctrine/dbal to ^3.2 the fascade class
uses the concrete methods directly which has not been there
before. Furthermore all core usages has been adopted to the
replacement methods with #96551.
QueryBuilder::executeStatement()
This method is suitable for all INSERT, UPDATE or DELETE
queries build with QueryBuilder. Or to say shortly, these
kind of queries which only returns an integer value stating
the number of the affected rows (number of deleted, updated
or inserted rows).
QueryBuilder::executeQuery()
This method is suitable for all SELECT or COUNT queries, or
to say shortly, these kind of queries returning a resultset.
Updated by Stefan Bürk about 3 years ago
- Related to Bug #96247: TYPO3 Core still uses incompatible code related to Doctrine DBAL 3.x added
Updated by Stefan Bürk about 3 years ago
- Related to Task #96551: Use proper QueryBuilder execute() replacements executeQuery() and executeStatement() added
Updated by Gerrit Code Review about 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73610
Updated by Gerrit Code Review about 3 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73610
Updated by Gerrit Code Review about 3 years ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73610
Updated by Gerrit Code Review about 3 years ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73610
Updated by Gerrit Code Review about 3 years ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73610
Updated by Gerrit Code Review about 3 years ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73610
Updated by Stefan Bürk about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 08ad56cbb09e708383e57e608d1daf541e2fba0e.
Updated by Stefan Bürk almost 2 years ago
- Related to Task #101065: Remove obsolete method `QueryBuilder->execute()` added