Bug #22096 » 13490_core.diff
t3lib/class.t3lib_sqlparser.php (working copy) | ||
---|---|---|
// - "/" (division)
|
||
// - "%" (modulo)
|
||
$calcOperators = '&|\+|-|\*|\/|%';
|
||
|
||
// Fieldname:
|
||
if ($fieldName = $this->nextPart($parseString, '^([[:alnum:]._]+)([[:space:]]+|' . $calcOperators . '|<=|>=|<|>|=|!=|IS)')) {
|
||
|
||
if (($fieldName = $this->nextPart($parseString, '^([[:alnum:]._]+)([[:space:]]+|' . $calcOperators . '|<=|>=|<|>|=|!=|IS)')) !== '') {
|
||
// Parse field name into field and table:
|
||
$tableField = explode('.', $fieldName, 2);
|
||
if (count($tableField) == 2) {
|