mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
@@ -284,7 +284,7 @@ abstract class Connection
|
|||||||
if ($this->linkID) {
|
if ($this->linkID) {
|
||||||
return $this->linkID->getAttribute(PDO::ATTR_DRIVER_NAME);
|
return $this->linkID->getAttribute(PDO::ATTR_DRIVER_NAME);
|
||||||
} else {
|
} else {
|
||||||
return basename(str_replace('\\', '/', $this->config['type']));
|
return $this->config['type'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ class Query
|
|||||||
static $builder = [];
|
static $builder = [];
|
||||||
$driver = $this->driver;
|
$driver = $this->driver;
|
||||||
if (!isset($builder[$driver])) {
|
if (!isset($builder[$driver])) {
|
||||||
$class = '\\think\\db\\builder\\' . ucfirst($driver);
|
$class = false !== strpos($driver, '\\') ? $driver : '\\think\\db\\builder\\' . ucfirst($driver);
|
||||||
$builder[$driver] = new $class($this->connection);
|
$builder[$driver] = new $class($this->connection);
|
||||||
}
|
}
|
||||||
// 设置当前查询对象
|
// 设置当前查询对象
|
||||||
|
|||||||
Reference in New Issue
Block a user