Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/08/2013, 16:53
PiojoPirata
 
Fecha de Ingreso: agosto-2013
Ubicación: Villa Maria
Mensajes: 6
Antigüedad: 10 años, 9 meses
Puntos: 0
Respuesta: Capturar mensaje trigger postgresql

Para quien tenga el mismo problema dejo la solucion:

Código:
            try {
                $result=$this->db->insert('contaejercicios',$datos);
                if ($result==true){
                    return true;    
                }
                else{
                    throw new Exception();
                }
            } catch (Exception $e) {
                $mensaje=$this->db->_error_message();
                echo "<p>$mensaje</p>";
            }
Saludos