1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-19 12:51:27 +02:00

PDO: Support binary fields download

This commit is contained in:
Jakub Vrana
2018-02-20 22:31:49 +01:00
parent 5b359263eb
commit 7b35ebd82e
3 changed files with 5 additions and 9 deletions

View File

@@ -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