commerce_addressbook_set_default_profile() is a perfect example of where a merge query could be used instead of running a select followed by an update or an insert.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BassistJimmyJam’s picture

Status: Active » Needs review
FileSize
1.25 KB

Patch attached.

bojanz’s picture

Status: Needs review » Fixed

Good catch, committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.