Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Database/Adapter/MariaDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -2288,6 +2288,13 @@ protected function processException(PDOException $e): \Exception
return new NotFoundException('Collection not found', $e->getCode(), $e);
}

// Unknown collection
// We have two of same, because docs point to 1051.
// Keeping previous 1049 (above) just in case it's for older versions
if ($e->getCode() === '42S02' && isset($e->errorInfo[1]) && $e->errorInfo[1] === 1051) {
return new NotFoundException('Collection not found', $e->getCode(), $e);
}

return $e;
}

Expand Down