#626790 by justinrandell: Fixed bug where drupal_write_record() returns FALSE for valid update queries.