Add SQLite Patch integration tests

- Use multiple-class use statements
This commit is contained in:
2024-06-07 23:06:31 -04:00
parent 1ab961e35a
commit 9fba3781d6
21 changed files with 143 additions and 67 deletions

View File

@@ -27,7 +27,9 @@ class Custom
$stmt = Configuration::dbConn()->prepare($query);
} catch (PDOException $ex) {
$keyword = explode(' ', $query, 2)[0];
throw new DocumentException("Error executing $keyword statement: " . Configuration::dbConn()->errorCode(),
throw new DocumentException(
sprintf("Error executing %s statement: [%s] %s", $keyword, Configuration::dbConn()->errorCode(),
Configuration::dbConn()->errorInfo()[2]),
previous: $ex);
}
foreach ($parameters as $key => $value) {