mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +08:00
fixed uninitialized pro issue.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user