Bug #21514 » 12535_core_v3.diff
t3lib/class.t3lib_sqlparser.php (working copy) | ||
---|---|---|
}
|
||
// Find "comparator":
|
||
$stack[$level][$pnt[$level]]['comparator'] = $this->nextPart($parseString, '^(<=|>=|<|>|=|!=|NOT[[:space:]]+IN|IN|NOT[[:space:]]+LIKE|LIKE|IS[[:space:]]+NOT|IS|BETWEEN|NOT[[:space]]+BETWEEN)');
|
||
$comparatorPatterns = array(
|
||
'<=', '>=', '<', '>', '=', '!=',
|
||
'NOT[[:space:]]+IN', 'IN',
|
||
'NOT[[:space:]]+LIKE[[:space:]]+BINARY', 'LIKE[[:space:]]+BINARY', 'NOT[[:space:]]+LIKE', 'LIKE',
|
||
'IS[[:space:]]+NOT', 'IS',
|
||
'BETWEEN', 'NOT[[:space]]+BETWEEN',
|
||
);
|
||
$stack[$level][$pnt[$level]]['comparator'] = $this->nextPart($parseString, '^(' . implode('|', $comparatorPatterns) . ')');
|
||
if (strlen($stack[$level][$pnt[$level]]['comparator'])) {
|
||
if (preg_match('/^CONCAT[[:space:]]*\(/', $parseString)) {
|
||
$this->nextPart($parseString, '^(CONCAT[[:space:]]?[(])');
|
- « Previous
- 1
- 2
- 3
- 4
- Next »