修改getDriverName方法

This commit is contained in:
水平凡
2016-07-22 11:14:40 +08:00
committed by GitHub
parent 0351563c84
commit b59098a559

View File

@@ -284,7 +284,7 @@ abstract class Connection
if ($this->linkID) {
return $this->linkID->getAttribute(PDO::ATTR_DRIVER_NAME);
} else {
return basename(str_replace('\\', '/', $this->config['type']));
return $this->config['type'];
}
}