Changeset 5933
- Timestamp:
- 04/12/12 15:11:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/services/PostgreSQL.php
r5641 r5933 112 112 $rs .= ( isset($this->config['dbname']) && $this->config['dbname'] ) ? ' dbname='.$this->config['dbname'] : '' ; 113 113 $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\''); 117 120 } 118 121
Note: See TracChangeset
for help on using the changeset viewer.