mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 23:57:29 +02:00
PDO: Support binary fields download
This commit is contained in:
@@ -155,10 +155,6 @@ if (isset($_GET["pgsql"])) {
|
||||
return ($adminer->database() == $database);
|
||||
}
|
||||
|
||||
function value($val, $field) {
|
||||
return $val;
|
||||
}
|
||||
|
||||
function quoteBinary($s) {
|
||||
return q($s);
|
||||
}
|
||||
@@ -204,10 +200,6 @@ if (isset($_GET["pgsql"])) {
|
||||
);
|
||||
}
|
||||
|
||||
function value($val, $field) {
|
||||
return $this->_conn->value($val, $field);
|
||||
}
|
||||
|
||||
function quoteBinary($s) {
|
||||
return $this->_conn->quoteBinary($s);
|
||||
}
|
||||
|
@@ -129,7 +129,10 @@
|
||||
* @return string
|
||||
*/
|
||||
function value($val, $field) {
|
||||
return $val;
|
||||
return (method_exists($this->_conn, 'value')
|
||||
? $this->_conn->value($val, $field)
|
||||
: (is_resource($val) ? stream_get_contents($val) : $val)
|
||||
);
|
||||
}
|
||||
|
||||
/** Quote binary string
|
||||
|
@@ -1,4 +1,5 @@
|
||||
Adminer 4.6.3-dev:
|
||||
PDO: Support binary fields download
|
||||
|
||||
Adminer 4.6.2 (released 2018-02-20):
|
||||
Semi-transparent border on table actions
|
||||
|
Reference in New Issue
Block a user