Commit 98bc18ad authored by Gábor Hojtsy's avatar Gábor Hojtsy

#183125 by openwereld and hswong3i: make drupal_write_record()'s insert work...

#183125 by openwereld and hswong3i: make drupal_write_record()'s insert work on PostgreSQL, by not using the autoincrement value in the insert at all (instead of using a NULL)
parent b64adf07
......@@ -3140,7 +3140,7 @@ function drupal_write_record($table, &$object, $update = array()) {
if ($info['type'] == 'serial') {
$serials[] = $field;
// Ignore values for serials when inserting data. Unsupported.
$object->$field = 'NULL';
unset($object->$field);
}
// Build arrays for the fields, placeholders, and values in our query.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment