Closed (won't fix)
Project:
Image
Version:
5.x-1.4
Component:
image.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2007 at 20:16 UTC
Updated:
18 Jul 2007 at 15:20 UTC
Good afternoon
When upgrading to 1.4, I receive the following errors:
user warning: 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 'EXISTS ( SELECT * FROM dru_files f2 WHERE f2.filepath = f1.file query: SELECT f1.fid, f1.nid, f1.filepath FROM dru_files f1 INNER JOIN dru_node n ON f1.nid = n.nid WHERE n.type = 'image' AND EXISTS ( SELECT * FROM dru_files f2 WHERE f2.filepath = f1.filepath AND f1.fid <> f2.fid AND f1.fid < f2.fid ) in /home/content/t/i/m/timatlee/html/d5/includes/database.mysql.inc on line 172.
As well, the update summary reports:
Failed: DELETE FROM {file_revisions} WHERE NOT EXISTS (SELECT * FROM {files} WHERE {files}.fid = {file_revisions}.fid)
PHP Version 4.3.11
Client API version 5.0.18
Server version 4.0.27-max-log
The module still seems to work - but I haven't tested the module completely.
Comments
Comment #1
drewish commentedwell that's a load of crap... looks like mysql 4.0 doesn't support EXISTS? I'll have to see if I can re-write that as an inner join...
Comment #2
drewish commentedoh, i should mention that that query failing shouldn't hurt anything. that update was designed to clean out duplicate records in the files table. hopefully you'll be able to help me test out a revised query.
Comment #3
timatlee commentedYeah, looks like it isn't affecting anything - Still creating image nodes, viewing at different sizes, all that good stuff.
I should be able to assist with testing any updates - I backed up the database before upgrading, so it's cake to restore it to the pre-upgrade point and try again.
Comment #4
drewish commentedeh, i'm considering just saying that mysql 4.0 is not supported... 4.1 is a much better release
Comment #5
drewish commentedbetter title
Comment #6
nancydruhttp://dev.mysql.com/doc/refman/4.1/en/index.html
Ask your host to move to a supported version...
Comment #7
drewish commentedthanks nancyw, that was all the excuse i needed!
Comment #8
nancydruWish I could do that on my Site Documentation module. I had to fix it and it created a really UGLY Sql statement and two different sets of code.
Comment #9
drewish commentedmarked http://drupal.org/node/160187 as a duplicate of this