Skip to content

Commit

Permalink
Fix for MySQL 8
Browse files Browse the repository at this point in the history
  • Loading branch information
TiGR authored Aug 24, 2021
1 parent daba0ca commit d78dc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DatabaseLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ private function addExplain()
}

if (strtolower(substr(ltrim($row['query'], " \t\r\n("), 0, 7)) == 'select ') {
$stmt = $this->pdo->prepare('explain extended ' . $row['query']);
$stmt = $this->pdo->prepare('explain ' . $row['query']);
$params = [];
if (!empty($row['params'])) {
foreach ($row['params'] as $key => $param) {
Expand Down

0 comments on commit d78dc05

Please sign in to comment.