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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user