Project

General

Profile

Actions

Bug #80744

closed

Extbase\Persistence\Repository IN statement string values in custom queries does not has quotes

Added by Anonymous over 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Start date:
2017-04-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Steps to reproduce

  • Create a custom query with a IN statement
  • Example query on tt_content table
    $query->matching(
        $query->logicalAnd([
            $query->in(
                'CType', $CTypes // <- this string values does not has quotes
            ),
            $query->in(
                'pid', $pages
            )
        ])
    );
    

Possible workaround

if (TYPO3_branch === '8.7') {
    $CTypes = array_map(function($a) { return '"'.$a.'"';}, $CTypes);
}

Actions #1

Updated by Morton Jonuschat over 7 years ago

  • Category changed from Database API (Doctrine DBAL) to Extbase
  • Target version set to Candidate for patchlevel
Actions #2

Updated by Gerrit Code Review over 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52392

Actions #3

Updated by Morton Jonuschat over 7 years ago

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

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF