Project

General

Profile

Actions

Task #96972

closed

Deprecate QueryBuilder::execute()

Added by Stefan Bürk about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2022-02-20
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #96247: TYPO3 Core still uses incompatible code related to Doctrine DBAL 3.xClosedBenni Mack2021-12-04

Actions
Related to TYPO3 Core - Task #96551: Use proper QueryBuilder execute() replacements executeQuery() and executeStatement()ClosedStefan Bürk2022-01-16

Actions
Related to TYPO3 Core - Task #101065: Remove obsolete method `QueryBuilder->execute()`ClosedStefan Bürk2023-06-14

Actions
Actions #1

Updated by Stefan Bürk about 2 years ago

  • Related to Bug #96247: TYPO3 Core still uses incompatible code related to Doctrine DBAL 3.x added
Actions #2

Updated by Stefan Bürk about 2 years ago

  • Related to Task #96551: Use proper QueryBuilder execute() replacements executeQuery() and executeStatement() added
Actions #3

Updated by Gerrit Code Review about 2 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

Actions #4

Updated by Gerrit Code Review about 2 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

Actions #5

Updated by Gerrit Code Review about 2 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

Actions #6

Updated by Gerrit Code Review about 2 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

Actions #7

Updated by Gerrit Code Review about 2 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

Actions #8

Updated by Gerrit Code Review about 2 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

Actions #9

Updated by Stefan Bürk about 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions #11

Updated by Stefan Bürk 10 months ago

  • Related to Task #101065: Remove obsolete method `QueryBuilder->execute()` added
Actions

Also available in: Atom PDF