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 'GROUP BY t.tid, t.vid, v.module, xt.last_changed, xt.previously_changed, xt.prio' at line 8 query: SELECT t.tid, t.vid, v.module, xt.last_changed, xt.previously_changed, xt.priority_override FROM term_data t LEFT JOIN vocabulary v ON t.vid = v.vid LEFT JOIN xmlsitemap_term xt ON t.tid = xt.tid WHERE (t.language ='it' OR t.language ='' OR t.language IS NULL) AND ( (t.vid NOT IN (0) AND xt.priority_override <> -1 AND t.tid <> 0 )GROUP BY t.tid, t.vid, v.module, xt.last_changed, xt.previously_changed, xt.priority_override in /sites/all/modules/xmlsitemap/xmlsitemap_term/xmlsitemap_term.module on line 220.

There's an open parenthesis on line 215 that is not closed.

CommentFileSizeAuthor
#4 xmlsitemap_term-DRUPAL-6--1.patch938 bytesAnonymous (not verified)

Comments

stefano73’s picture

One more error, on node insert. The last value is missing.

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 ')' at line 1 query: INSERT INTO xmlsitemap_term (tid, last_changed, priority_override) VALUES (51, 1231353633, ) in /sites/all/modules/xmlsitemap/xmlsitemap_term/xmlsitemap_term.module on line 167.
avpaderno’s picture

Title: Not closed parenthesis in SQL query » SQL error when building sitemap

@stefano73: That is a different error, that has been already reported; see #354453: priority_override doesn't get a value.

avpaderno’s picture

Title: SQL error when building sitemap » Not closed parenthesis in SQL query
Anonymous’s picture

Title: SQL error when building sitemap » Not closed parenthesis in SQL query
Status: Active » Needs review
StatusFileSize
new938 bytes

I believe that removing the opening parenthesis is the solution for this issue.

avpaderno’s picture

Status: Needs review » Reviewed & tested by the community

The patch fixes the problem.

avpaderno’s picture

Status: Reviewed & tested by the community » Fixed

The bug has been fixed in CVS for the DRUPAL-6--1 branch; the DRUPAL-6--2 branch had been fixed in precedent commits.

Status: Fixed » Closed (fixed)

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