Hi, I get the following error when upgrading:

Service unavailable (with message) ResponseText: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'tnid' in where clause is ambiguous: SELECT COUNT(*) AS expression FROM (SELECT 1 AS expression FROM {node} n LEFT JOIN {entity_translation_upgrade_history} etuh ON n.nid = etuh.nid WHERE (etuh.complete IS NULL OR etuh.complete = 0) AND (tnid <> :db_condition_placeholder_0) AND (tnid <> nid) AND (n.type IN (:db_condition_placeholder_1)) ) subquery; Array ( [:db_condition_placeholder_0] => 0 [:db_condition_placeholder_1] => treatment ) in entity_translation_upgrade_do() (linea 65 di D:\www\lannagaia\webroot\sites\all\modules\entity_translation\entity_translation_upgrade\entity_translation_upgrade.admin.inc).

CommentFileSizeAuthor
#1 ambiguous_tnid-1667582-1.patch825 bytespeximo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

peximo’s picture

Status: Active » Needs review
FileSize
825 bytes

Attached patch should fix the bug.

plach’s picture

Status: Needs review » Fixed

Committed and pushed, thanks!

Status: Fixed » Closed (fixed)

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

  • Commit d9f0af2 on 7.x-1.x, et-permissions-1829630, factory, et-fc, revisions authored by peximo, committed by plach:
    Issue #1667582 by peximo: Fixed PDOException (ambiguous tnid field) on...

  • Commit d9f0af2 on 7.x-1.x, et-permissions-1829630, factory, et-fc, revisions, workbench authored by peximo, committed by plach:
    Issue #1667582 by peximo: Fixed PDOException (ambiguous tnid field) on...