Project

General

Profile

Bug #22631 ยป 14361.diff

Administrator Admin, 2010-05-11 13:52

View differences:

dbal/class.ux_t3lib_sqlparser.php 2010-05-11 13:39:01.000000000 +0200
} else {
$compareValue = $v['value'][1] . $this->compileAddslashes(trim($v['value'][0], '%')) . $v['value'][1];
}
$output .= '(dbms_lob.instr(' . trim(($v['table'] ? $v['table'] . '.' : '') . $v['field']) . ', ' . $compareValue . ',1,1) > 0)';
if($GLOBALS['TYPO3_DB']->cache_fieldType[trim($v['table'],'"')][trim($v['field'],'"')]['type'] == "int" ||
$GLOBALS['TYPO3_DB']->cache_fieldType[trim($v['table'],'"')][trim($v['field'],'"')]['type'] == "float" )
{
$output .= trim(($v['table'] ? $v['table'] . '.' : '') . $v['field']) . ' LIKE ' . $compareValue;
}
else
{
$output .= '(dbms_lob.instr(' . trim(($v['table'] ? $v['table'] . '.' : '') . $v['field']) . ', ' . $compareValue . ',1,1) > 0)';
}
break;
default:
$output .= ' ' . $v['comparator'];
    (1-1/1)