Closed (duplicate)
Project:
ImageCache Actions
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2009 at 18:24 UTC
Updated:
23 Jul 2009 at 22:00 UTC
warning: pg_query() [function.pg-query]: Query failed: ERROR: syntax error at or near "N" LINE 1: ...nid, f.fid FROM upload AS u INNER JOIN files AS f N u.fid = ... ^ in /var/www/sandbox/includes/database.pgsql.inc on line 139.
user warning: query: SELECT nid, f.fid FROM upload AS u INNER JOIN files AS f N u.fid = f.fid WHERE f.filepath = 'sites/default/files/var_images/Sahtu/59021/Autumn Leaves.jpg' LIMIT 1 in /var/www/sandbox/sites/all/modules/imagecache_actions/utility.inc on line 275.
warning: pg_query() [function.pg-query]: Query failed: ERROR: syntax error at or near "N" LINE 1: ...nid, f.fid FROM upload AS u INNER JOIN files AS f N u.fid = ... ^ in /var/www/sandbox/includes/database.pgsql.inc on line 139.
user warning: query: SELECT nid, f.fid FROM upload AS u INNER JOIN files AS f N u.fid = f.fid WHERE f.filepath = 'sites/default/files/var_images/Sahtu/59021/Creek.jpg' LIMIT 1 in /var/www/sandbox/sites/all/modules/imagecache_actions/utility.inc on line 275.
As a postgres only user I tend to find all of these issues, I believe I have seen this before, But I could be out to lunch, but the short JOIN syntax used here is invalid in postgres, you must use the full join syntax for postgres compat..
Comments
Comment #1
spydmobile commentedOk, My bad, this is NOT a postgres compat issue it is a typo on line 275 of utility.inc, it says:
but should be:
Making this change eliminated the error.....
Comment #2
spydmobile commentedGee 2 blunders in a row. Sorry. setting as duplicate
Comment #3
dman commentedYeah typo.
Thanks anyway!!