From 98bc18adcd27496d14efd4b664d3483d0b8dc0ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 19 Oct 2007 10:30:54 +0000 Subject: #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) --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 51aefac5f..9275125d6 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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. -- cgit v1.2.3