Comments

yhahn’s picture

Status: Active » Needs review
StatusFileSize
new1.52 KB

Patch attached, contingent upon issue above.

catch’s picture

Status: Needs review » Fixed

Patch looks good, tested on ex2 database and confirmed the field settings are updated correctly. Committed - http://drupal.org/cvs?commit=431642

Status: Fixed » Closed (fixed)

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

grendzy’s picture

Just a note for anyone troubleshooting this - if your schema is missing this update (which I encountered updating from 7-alpha6 to 7.0), you'll see the following message when saving a node with term references:

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 2: SELECT base.tid AS tid, base.vid AS vid, base.name AS name, base.description AS description, base.format AS format, base.weight AS weight, v.machine_name AS vocabulary_machine_name FROM {taxonomy_term_data} base INNER JOIN {taxonomy_vocabulary} v ON base.vid = v.vid WHERE (base.name LIKE :db_condition_placeholder_0 ESCAPE '\\') AND (base.vid IN ()) ; Array ( [:db_condition_placeholder_0] => performance ) in DrupalDefaultEntityController->load() (line 196 of drupal/includes/entity.inc).

To fix it, just run head2head_881530 manually.