Subversion Repositories Applications.framework

Compare Revisions

Ignore whitespace Rev 426 → Rev 427

/trunk/framework/Bdd.php
94,13 → 94,16
$this->bdd_nom = Config::get('bdd_nom');
$this->utilisateur = Config::get('bdd_utilisateur');
$this->pass = Config::get('bdd_mot_de_passe');
$this->dsn = Config::get('bdd_dsn');
$this->encodage = Config::get('bdd_encodage');
 
if ($this->type == 'sqlite' || $this->type == 'sqlite2') {
$this->dsn = $this->type.':'.$this->hote;
} else {
$this->dsn = $this->type.':dbname='.$this->bdd_nom.';host='.$this->hote;
if (!$this->dsn) {
if ($this->type == 'sqlite' || $this->type == 'sqlite2') {
$this->dsn = $this->type.':'.$this->hote;
} else {
$this->dsn = $this->type.':dbname='.$this->bdd_nom.';host='.$this->hote;
}
}
$this->initialiserProtocole();
}
147,9 → 150,9
trigger_error($e, E_USER_WARNING);
}
if ($this->encodage != null && $this->type == 'mysql') {
$this->requeter("SET names '".$this->encodage."'");
$this->connexion->query("SET names '".$this->encodage."'");
} else if ($this->type == 'sqlite') {
$this->requeter("PRAGMA case_sensitive_like = false");
$this->connexion->query("PRAGMA case_sensitive_like = false");
}
break;
case self::ABSTRACTION_MYSQL :