Project

General

Profile

Actions

Bug #102175

closed

MySQL dissalows using same table in a sub-query for an delete-query

Added by Stefan Bürk about 1 year ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2023-10-16
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

With #102171 a sub-query has been used to define
the records to delete. However, two things has
been missed:

  • To create placeholders in the sub-query, the
    correct outer QueryBuilder instance needs to
    be used.
  • MySQL don't allow using the same table from
    the delete query in a sub-query, at least not
    directly.

The subquery should be moved to the proper place
and a additional subquery used to enforce the
result materliazation into a temporary table.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #102171: Speed up bin/typo3 referencindex:updateClosed2023-10-14

Actions
Actions

Also available in: Atom PDF