Changeset 5933


Ignore:
Timestamp:
04/12/12 15:11:33 (9 years ago)
Author:
acoutinho
Message:

Ticket #2144 - Nao armazena informacao do uidnumber do usuario durante login no Expresso

File:
1 edited

Legend:

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

    r5641 r5933  
    112112        $rs .= ( isset($this->config['dbname']) && $this->config['dbname'] )  ? ' dbname='.$this->config['dbname'] : '' ; 
    113113        $rs .= ( isset($this->config['port']) && $this->config['port'] )  ? ' port='.$this->config['port'] : '' ; 
    114                  
    115             return( $this->con = pg_connect( $rs ) ); 
    116             //$this->con = pg_connect('host='.$config['host'].' user='.$config['user'].' password='.$config['password'].' dbname='.$config['dbname'].'  options=\'--client_encoding=UTF8\''); 
     114 
     115        if($this->con = pg_connect( $rs )) 
     116            return $this->con; 
     117 
     118        throw new Exception('It was not possible to enable the target connection!'); 
     119        //$this->con = pg_connect('host='.$config['host'].' user='.$config['user'].' password='.$config['password'].' dbname='.$config['dbname'].'  options=\'--client_encoding=UTF8\''); 
    117120    } 
    118121 
Note: See TracChangeset for help on using the changeset viewer.