Revert "[BUGFIX] Typo3DbQueryParser: Use IN with array-operand2"
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Persistence / Generic / Storage / Typo3DbQueryParser.php
index 5a541ac..2f93657 100644 (file)
@@ -379,15 +379,7 @@ class Typo3DbQueryParser implements \TYPO3\CMS\Core\SingletonInterface {
                                        } else {
                                                $additionalWhereForMatchFields = '';
                                        }
-                                       $operand2IsMultiValueType = \TYPO3\CMS\Extbase\Utility\TypeHandlingUtility::isValidTypeForMultiValueComparison($operand2);
-                                       $sql['where'][] = $tableName . '.uid IN (SELECT ' . $columnMap->getParentKeyFieldName()
-                                               . ' FROM ' . $relationTableName
-                                               . ' WHERE ' . $columnMap->getChildKeyFieldName()
-                                                       . ($operand2IsMultiValueType
-                                                               ? ' IN (' . $parameterIdentifier . ')'
-                                                               : '=' . $parameterIdentifier
-                                                       )
-                                               . $additionalWhereForMatchFields . ')';
+                                       $sql['where'][] = $tableName . '.uid IN (SELECT ' . $columnMap->getParentKeyFieldName() . ' FROM ' . $relationTableName . ' WHERE ' . $columnMap->getChildKeyFieldName() . '=' . $parameterIdentifier . $additionalWhereForMatchFields . ')';
                                } elseif ($typeOfRelation === ColumnMap::RELATION_HAS_MANY) {
                                        $parentKeyFieldName = $columnMap->getParentKeyFieldName();
                                        if (isset($parentKeyFieldName)) {