Skip to content
Snippets Groups Projects
Commit 98bc18ad authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#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
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment