fixed uninitialized pro issue.

This commit is contained in:
Qiang Xue
2013-08-24 06:24:36 -04:00
parent dea65efd04
commit 21b0cc73c4

View File

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