Changeset 373
- Timestamp:
- 02/20/07 17:55:42 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jelix/db/drivers/postgresql/jDbConnection.postgresql.class.php
r366 r373 64 64 $funcconnect= ($this->profil['persistent'] ? 'pg_pconnect':'pg_connect'); 65 65 66 $str = 'dbname= '.$this->profil['database'].' user='.$this->profil['user'].' password='.$this->profil['password'];66 $str = 'dbname=\''.$this->profil['database'].'\' user=\''.$this->profil['user'].'\' password=\''.$this->profil['password'].'\''; 67 67 68 68 // on fait une distinction car si host indiqu�> connection TCP/IP, sinon socket unix 69 69 if($this->profil['host'] != '') 70 $str = 'host= '.$this->profil['host'].' '.$str;70 $str = 'host=\''.$this->profil['host'].'\' '.$str; 71 71 72 72 // Si le port est d�ni on le rajoute �a chaine de connexion 73 73 if (isset($this->profil['port'])) { 74 $str .= ' port= '.$this->profil['port'];74 $str .= ' port=\''.$this->profil['port'].'\''; 75 75 } 76 76
