diff --git includes/common.inc includes/common.inc
index 075a840..1fc07a5 100644
--- includes/common.inc
+++ includes/common.inc
@@ -3541,6 +3541,10 @@ function drupal_write_record($table, &$object, $update = array()) {
         $object->$field = db_last_insert_id($table, $field);
       }
     }
+    // If this was an update, check that a row was actually updated
+    if ($return == SAVED_UPDATED && db_affected_rows() < 1) {
+      $return = FALSE;
+    }
   }
   else {
     $return = FALSE;
