summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-19 10:30:54 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-19 10:30:54 +0000
commit98bc18adcd27496d14efd4b664d3483d0b8dc0ce (patch)
tree3fe3016d89bc084e8bee00a3a2339ddf64af7315 /includes
parentb64adf07c82087816dc5c4b37c13c0ef4d69223c (diff)
downloadbrdo-98bc18adcd27496d14efd4b664d3483d0b8dc0ce.tar.gz
brdo-98bc18adcd27496d14efd4b664d3483d0b8dc0ce.tar.bz2
#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)
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
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.