mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 05:02:48 +08:00
修正mysql驱动
This commit is contained in:
@@ -125,7 +125,7 @@ class Mysql extends Driver
|
||||
protected function getExplain($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);
|
||||
if (strpos($result['extra'], 'filesort') || strpos($result['extra'], 'temporary')) {
|
||||
Log::record('SQL:' . $this->queryStr . '[' . $result['extra'] . ']', 'warn');
|
||||
|
||||
Reference in New Issue
Block a user