Add update_record() postgres bytea support

To get ready for the postgres utf8 migration script
This commit is contained in:
patrickslee 2006-03-10 03:32:48 +00:00
parent d70fd5612d
commit 6442124426

View file

@ -1241,6 +1241,10 @@ function update_record($table, $dataobject) {
foreach ($columns as $column) {
if ($column->name <> 'id' and isset($data[$column->name]) ) {
$ddd[$column->name] = $data[$column->name];
// PostgreSQL bytea support
if ($CFG->dbtype == 'postgres7' && $column->type == 'bytea') {
$ddd[$column->name] = $db->BlobEncode($ddd[$column->name]);
}
}
}