Browse Source

fixed uninitialized pro issue.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
21b0cc73c4
  1. 1
      framework/yii/db/Connection.php

1
framework/yii/db/Connection.php

@ -523,6 +523,7 @@ class Connection extends Component
if (($pos = strpos($this->dsn, ':')) !== false) { if (($pos = strpos($this->dsn, ':')) !== false) {
return strtolower(substr($this->dsn, 0, $pos)); return strtolower(substr($this->dsn, 0, $pos));
} else { } else {
$this->open();
return strtolower($this->pdo->getAttribute(PDO::ATTR_DRIVER_NAME)); return strtolower($this->pdo->getAttribute(PDO::ATTR_DRIVER_NAME));
} }
} }

Loading…
Cancel
Save