Project

General

Profile

Actions

Bug #80425

closed

Constraint 'IN' in Query doesn't respect string escaping

Added by Kai Ole Hartwig over 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2017-03-23
Due date:
% Done:

0%

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

Description

When building a query inside a repository method using $this->createQuery() and defining an 'IN' constraint by chaining the methods $query->matching() and $query->in() the execution of the query yields an SQL error.

#1472074379: Unknown column 'foo' in 'where clause'

Code example:

public function findUsingOptions() {
$options = [
'foo',
'bar',
'foobar',
];

$query = $this->createQuery();
$query->matching($query->in('my_column', $options));
return $query->execute();
}
Actions #1

Updated by Wouter Wolters over 7 years ago

  • Status changed from New to Needs Feedback

Please try https://review.typo3.org/#/c/52392/ if that works for you.
Thanks.

Actions #2

Updated by Wouter Wolters over 7 years ago

  • Status changed from Needs Feedback to Resolved
Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF