Closed (fixed)
Project:
File Entity (fieldable files)
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
23 Nov 2013 at 15:50 UTC
Updated:
15 Nov 2014 at 07:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commented7210 - Merge MIME types into the {file_type} table. invalid merge query no conditions 17 db updates from file_entity since drupal 7.24 upgrade? - unable to update db
Comment #2
Anonymous (not verified) commentedComment #3
seshi commentedSubscribing.!
On Running update.php on Drupal version 7.24
Comment #4
dave reidI'll need help debugging this. I'm not sure where the merge query is coming from because neither file_entity_update_7210() nor file_type_save() runs any merge queries.
@seshi Please file a new issue because file_entity_update_7104() is not the same function that is being reported here with an issue, even if it's the same message.
Comment #5
valthebaldI confirm this happens when upgrading from file_entity 1.3 to 2.0-alpha3, with media module switched off (that's important).
db_merge() (called from file_entity.install line 372) throws InvalidMergeQueryException when there is no condition set.
Attached patch solves the problem
Comment #6
Anonymous (not verified) commentedI can confirm that this happens also with Drupal-7.25. Trying to install file_entity without the media module throws the same error:
Failed: InvalidMergeQueryException: Invalid merge query: no conditions in MergeQuery->execute() (line 1612 of /var/www/html/includes/database/query.inc).
Comment #7
froboyApplied the patch and it works for me.
Comment #8
matthieu_collet commentedThe patch works for me too, thanks !
Comment #9
dgastudio commentedsame problem, same fix
Comment #10
jrabeemer commented#5 works for me!
Comment #12
aaron commentedCommitted to http://drupalcode.org/project/file_entity.git/commit/29b04ed.