Project

General

Profile

Bug #22959 » t3lib_db_listQuery_performance.patch

Administrator Admin, 2010-06-22 13:27

View differences:

class.t3lib_db.php (Arbeitskopie)
*/
function listQuery($field, $value, $table) {
$pattern = $this->quoteStr($value, $table);
$patternForLike = $this->escapeStrForLike($pattern, $table);
$where = '(' . $field . ' LIKE \'%,' . $patternForLike . ',%\' OR ' .
$field . ' LIKE \'' . $patternForLike . ',%\' OR ' .
$field . ' LIKE \'%,' . $patternForLike . '\' OR ' .
$field . '=\'' . $pattern . '\')';
$where = 'find_in_set(\'' . $pattern . '\',' . $field . ')';
return $where;
}
(1-1/4)