diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index a45d8d3e..2e716b29 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -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']; } }