1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 14:46:36 +02:00

PostgreSQL PDO: Fix bytea without primary key (fix #1021)

This commit is contained in:
Jakub Vrana
2025-04-11 15:29:25 +02:00
parent 746c0a7b0b
commit 5eaaa498d3
3 changed files with 13 additions and 6 deletions

View File

@@ -197,10 +197,7 @@ abstract class SqlDriver {
* @param Field $field
*/
function value(?string $val, array $field): ?string {
return (method_exists($this->conn, 'value')
? $this->conn->value($val, $field)
: (is_resource($val) ? stream_get_contents($val) : $val)
);
return (method_exists($this->conn, 'value') ? $this->conn->value($val, $field) : $val);
}
/** Quote binary string */