developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #936: #936_not_like.diff

File #936_not_like.diff, 804 bytes (added by thomas, 11 years ago)
  • lib/jelix/dao/jDaoConditions.class.php

     
    154154    function addCondition ($field_id, $operator, $value, $foo = false){
    155155        $operator = trim(strtoupper($operator));
    156156        if(preg_match ('/^[^\w\d\s;\(\)]+$/', $operator) ||
    157            in_array($operator, array('LIKE', 'ILIKE', 'IN', 'NOT IN', 'IS', 'IS NOT', 'IS NULL',
     157           in_array($operator, array('LIKE', 'NOT LIKE', 'ILIKE', 'IN', 'NOT IN', 'IS', 'IS NOT', 'IS NULL',
    158158                    'IS NOT NULL', 'MATCH', 'REGEXP', 'NOT REGEXP', 'RLIKE', 'SOUNDS LIKE'))) {
    159159
    160160            $this->_currentCondition->conditions[] = array (