mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2025-01-05 15:32:40 +00:00
c4a41255b0
No testing has been performed yet, but changes are extensive enough to warrant a commit. Of particular note: - SQL states are enumerated in a separate trait to reduce duplication - PDOStatement is now an abstract class to avoid duplication of engine-specific error handling - Error handling has been cleaned up somewhat
18 lines
580 B
PHP
18 lines
580 B
PHP
<?php
|
|
/** @license MIT
|
|
* Copyright 2017 J. King, Dustin Wilson et al.
|
|
* See LICENSE and AUTHORS files for details */
|
|
|
|
declare(strict_types=1);
|
|
namespace JKingWeb\Arsse\Db\PostgreSQL;
|
|
|
|
class PDOStatement extends \JKingWeb\Arsse\Db\PDOStatement {
|
|
public static function mungeQuery(string $query, array $types, ...$extraData): string {
|
|
return Statement::mungeQuery($query, $types, false);
|
|
}
|
|
|
|
public static function buildEngineException($code, string $msg): array {
|
|
// PostgreSQL uses SQLSTATE exclusively, so this is not used
|
|
return [];
|
|
}
|
|
}
|