fix pruning pdo cache for vendors that throw on execute

This commit is contained in:
Ben Davies 2019-01-31 15:08:08 +00:00
parent 4f6541e4f5
commit 14b9fa5234
1 changed files with 5 additions and 2 deletions

View File

@ -165,8 +165,11 @@ trait PdoTrait
if ('' !== $this->namespace) {
$delete->bindValue(':namespace', sprintf('%s%%', $this->namespace), \PDO::PARAM_STR);
}
return $delete->execute();
try {
return $delete->execute();
} catch (TableNotFoundException $e) {
return true;
}
}
/**