Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add update_record() postgres bytea support

To get ready for the postgres utf8 migration script
  • Loading branch information...
commit 64421244267f24d7feacba78f32d818582fd4432 1 parent d70fd56
authored March 10, 2006

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  lib/datalib.php
4  lib/datalib.php
@@ -1241,6 +1241,10 @@ function update_record($table, $dataobject) {
1241 1241
     foreach ($columns as $column) {
1242 1242
         if ($column->name <> 'id' and isset($data[$column->name]) ) {
1243 1243
             $ddd[$column->name] = $data[$column->name];
  1244
+            // PostgreSQL bytea support
  1245
+            if ($CFG->dbtype == 'postgres7' && $column->type == 'bytea') {
  1246
+                $ddd[$column->name] = $db->BlobEncode($ddd[$column->name]);
  1247
+            }
1244 1248
         }
1245 1249
     }
1246 1250
 

0 notes on commit 6442124

Please sign in to comment.
Something went wrong with that request. Please try again.