Commit 21b0cc73 by Qiang Xue

fixed uninitialized pro issue.

parent dea65efd
...@@ -523,6 +523,7 @@ class Connection extends Component ...@@ -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));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment