We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a17cd5 + 904faaf commit cd55117Copy full SHA for cd55117
src/Database/Adapter/MariaDB.php
@@ -2288,6 +2288,13 @@ protected function processException(PDOException $e): \Exception
2288
return new NotFoundException('Collection not found', $e->getCode(), $e);
2289
}
2290
2291
+ // Unknown collection
2292
+ // We have two of same, because docs point to 1051.
2293
+ // Keeping previous 1049 (above) just in case it's for older versions
2294
+ if ($e->getCode() === '42S02' && isset($e->errorInfo[1]) && $e->errorInfo[1] === 1051) {
2295
+ return new NotFoundException('Collection not found', $e->getCode(), $e);
2296
+ }
2297
+
2298
return $e;
2299
2300
0 commit comments