Bug #21268 » dbal_12231.diff
class.ux_t3lib_db.php (working copy) | ||
---|---|---|
if (!is_numeric($where_clause[$k]['field'])) {
|
||
$where_clause[$k]['field'] = $this->quoteName($where_clause[$k]['field']);
|
||
}
|
||
if (isset($where_clause[$k]['calc_table'])) {
|
||
if ($where_clause[$k]['calc_table'] != '') {
|
||
$where_clause[$k]['calc_table'] = $this->quoteName($where_clause[$k]['calc_table']);
|
||
}
|
||
if ($where_clause[$k]['calc_field'] != '') {
|
||
$where_clause[$k]['calc_field'] = $this->quoteName($where_clause[$k]['calc_field']);
|
||
}
|
||
}
|
||
}
|
||
if ($where_clause[$k]['comparator']) {
|
||
// Detecting value type; list or plain:
|
class.ux_t3lib_sqlparser.php (working copy) | ||
---|---|---|
break;
|
||
}
|
||
} elseif ($v['calc']) {
|
||
$output .= trim(($v['table'] ? $v['table'] . '.' : '') . $v['field']) . $v['calc'] . $v['calc_value'][1] . $this->compileAddslashes($v['calc_value'][0]) . $v['calc_value'][1];
|
||
$output .= trim(($v['table'] ? $v['table'] . '.' : '') . $v['field']) . $v['calc'];
|
||
if (isset($v['calc_table'])) {
|
||
$output .= trim(($v['calc_table'] ? $v['calc_table'] . '.' : '') . $v['calc_field']);
|
||
} else {
|
||
$output .= $v['calc_value'][1] . $this->compileAddslashes($v['calc_value'][0]) . $v['calc_value'][1];
|
||
}
|
||
} elseif (!($GLOBALS['TYPO3_DB']->runningADOdbDriver('oci8') && $v['comparator'] === 'LIKE' && $functionMapping)) {
|
||
$output .= trim(($v['table'] ? $v['table'] . '.' : '') . $v['field']);
|
||
}
|