DB\IO add unescape bytea data

This commit is contained in:
Clemens Schwaighofer
2022-12-09 16:33:58 +09:00
parent 9936fc04da
commit b7c6d4b478
3 changed files with 33 additions and 9 deletions

View File

@@ -1488,12 +1488,17 @@ class IO
/**
* escape data for writing to bytea type column field
* @param string $bytea bytea to escape
* @return string escaped bytea
* @param string $data data to escape to bytea
* @return string escaped bytea
*/
public function dbEscapeBytea($bytea)
public function dbEscapeBytea($data)
{
return $this->db_functions->__dbEscapeBytea($bytea);
return $this->db_functions->__dbEscapeBytea($data);
}
public function dbUnescapeBytea($bytea)
{
return $this->db_functions->__dbUnescapeBytea($bytea);
}
/**