Ignore:
Timestamp:
04/23/12 15:34:17 (12 years ago)
Author:
cristiano
Message:

Ticket #2640 - Problemas com eventos no módulo ExpressoCalendar?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/services/PostgreSQL.php

    r5971 r5998  
    3434 
    3535    public function delete ( $uri, $justthese = false, $criteria = false ){ 
     36            if(!isset($uri['id']) && !is_int($uri['id'])) return false; //Delete chamado apenas passando id inteiros 
    3637            $map = Config::get($uri['concept'], 'PostgreSQL.mapping'); 
    37             if(!self::parseCriteria ( $criteria , $map)) return false; //Validador para não apagar tabela inteira 
    3838            $criteria = ($criteria !== false) ? $this->parseCriteria ( $criteria , $map , ' WHERE '.$map['id'].' = \''.addslashes( $uri['id'] ).'\'') : ' WHERE '.$map['id'].' = \''.addslashes( $uri['id'] ).'\''; 
    3939            return $this->execSql('DELETE FROM '.(Config::get($uri['concept'],'PostgreSQL.concept')).$criteria); 
Note: See TracChangeset for help on using the changeset viewer.