Ignore:
Timestamp:
05/30/12 11:34:56 (12 years ago)
Author:
gustavo
Message:

Ticket #2768 - Melhorias na inserção de destinatários na criacao de mensagem

Location:
sandbox/2.4.1-3/prototype/services
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.4.1-3/prototype/services/OpenLDAP.php

    r5804 r6351  
    1313        if( !isset($criteria["limit"]) ) 
    1414                $criteria["limit"] = $this->limit; 
    15          
     15       
    1616        $sr =  ldap_search( $this->con , $this->config['context'] , self::parseCriteria($criteria , $map) , self::parseJustthese($justthese, $map) , 0 , $criteria["limit"]);  
    1717        if(!$sr) return false;  
     
    156156        $as = array_shift( $filter ); 
    157157        $op = self::parseOperator( $as ); 
    158                  
     158 
    159159        if( is_array($filter[0]) ) 
    160160        { 
  • sandbox/2.4.1-3/prototype/services/PostgreSQL.php

    r6145 r6351  
    197197                    $val[] = '\''.addslashes($v).'\''; 
    198198            } 
    199              
    200             return '('.implode(',', $ind).') VALUES ('.implode(',', $val).') RETURNING '.$map['id'].' as id'; 
     199 
     200//          return '('.implode(',', $ind).') VALUES ('.implode(',', $val).') RETURNING '.$map['id'].' as id';        
     201            return '('.implode(',', $ind).') VALUES ('.implode(',', $val).') RETURNING id';          
    201202    } 
    202203         
     
    306307            case 'or': return( $op ); 
    307308            case 'in': return array( $op ); 
     309            case '!in': return array( 'NOT IN' ); 
    308310            case '^': return array( 'like', '%',  '' ); 
    309311            case '$': return array( 'like',  '', '%' ); 
Note: See TracChangeset for help on using the changeset viewer.