mirror of
https://github.com/dg/dibi.git
synced 2025-08-22 05:33:10 +02:00
- binary unescape doesn't throw exceptions more
This commit is contained in:
@@ -289,13 +289,10 @@ class DibiPostgreDriver extends DibiObject implements IDibiDriver
|
||||
*/
|
||||
public function unescape($value, $type)
|
||||
{
|
||||
switch ($type) {
|
||||
case dibi::BINARY:
|
||||
if ($type === dibi::BINARY) {
|
||||
return pg_unescape_bytea($value);
|
||||
|
||||
default:
|
||||
throw new InvalidArgumentException('Unsupported type.');
|
||||
}
|
||||
throw new InvalidArgumentException('Unsupported type.');
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user