mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
修正mysql驱动
This commit is contained in:
@@ -125,7 +125,7 @@ class Mysql extends Driver
|
|||||||
protected function getExplain($sql)
|
protected function getExplain($sql)
|
||||||
{
|
{
|
||||||
$pdo = $this->linkID->query("EXPLAIN " . $sql);
|
$pdo = $this->linkID->query("EXPLAIN " . $sql);
|
||||||
$result = $pdo->fetch(PDO::FETCH_ASSOC);
|
$result = $pdo->fetch(\PDO::FETCH_ASSOC);
|
||||||
$result = array_change_key_case($result);
|
$result = array_change_key_case($result);
|
||||||
if (strpos($result['extra'], 'filesort') || strpos($result['extra'], 'temporary')) {
|
if (strpos($result['extra'], 'filesort') || strpos($result['extra'], 'temporary')) {
|
||||||
Log::record('SQL:' . $this->queryStr . '[' . $result['extra'] . ']', 'warn');
|
Log::record('SQL:' . $this->queryStr . '[' . $result['extra'] . ']', 'warn');
|
||||||
|
|||||||
Reference in New Issue
Block a user