1
0
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:
David Grudl
2009-07-08 12:10:32 +00:00
parent a3f673e82b
commit 0d79d16d2c
9 changed files with 26 additions and 5 deletions

View File

@@ -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.');
}