Update 7103, not possible to process update.php:

Failed: 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 'AS , t.nid AS nid FROM node t WHERE ( IN ('b0558664-c94b-3674-d9df-3e1696b2e4' at line 1: SELECT t. AS , t.nid AS nid FROM
{node}

t WHERE ( IN (:db_condition_placeholder_0, :db_condition_placeholder_1)) ; Array ( [:db_condition_placeholder_0] => b0558664-c94b-3674-d9df-3e1696b2e471 [:db_condition_placeholder_1] => 5e3d8bbe-a1f2-f2d4-fdc0-71e6c23aa837 ) em entity_get_id_by_uuid() (linha 430 de /var/www/sites/all/modules/contrib/uuid/uuid.entity.inc).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vanyamtv’s picture

FileSize
3.02 KB

Like a quick fix, we can just check if module exists.

vanyamtv’s picture

Status: Active » Needs work
ron_s’s picture

Makes sense, although are you saying more work is necessary for this patch, or it needs to be reviewed?

We tested it locally and worked as we would expect. However the formatting of your patch is not correct. It is indented too far and doesn't match Drupal standards.

https://www.drupal.org/coding-standards#indenting

leisurman’s picture

I was having errors when i ran update using 7.x-1.0-alpha6. I downgraded to UUID 7.x-1.0-alpha5 and I didn't get the error when running update.

ron_s’s picture

Version: 7.x-1.0-alpha6 » 7.x-1.x-dev
Status: Needs work » Needs review
FileSize
3.32 KB

Here is a clean version of the patch in #1, applied against 7.x-1.x-dev. Please review, thanks.

ron_s’s picture

Label changes in the latest version of 7.x-1.x-dev has broken the patch. Attached is an updated version.

Can we get this reviewed fairly soon? It's a very simple fix. All it does is add an if (module_exists('uuid')) { conditional to update 7103. Thanks.

Liam Morland’s picture

Sounds like a duplicate of #2248581: uuid_update_7103() fails.

ron_s’s picture

Certainly seems that way. The patches do the same thing... one is an if conditional wrapped around the code, while the other uses a continue. I'm fine with either, module owners just need to decide what they prefer.