Project

General

Profile

Bug #21514 » 12535_core_v3.diff

Administrator Admin, 2010-08-08 16:13

View differences:

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:]]?[(])');
(4-4/4)