I'm getting the following error when running cron:
PDOException: SQLSTATE[42000]: [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'USING'.: SELECT TOP(100) t.tid FROM {taxonomy_term_data} t INNER JOIN {taxonomy_vocabulary} tv USING (vid) LEFT JOIN {xmlsitemap} x ON x.type = 'taxonomy_term' AND t.tid = x.id WHERE x.id IS NULL AND tv.machine_name IN (:bundles_0, :bundles_1, :bundles_2, :bundles_3) ORDER BY t.tid DESC; Array ( [:bundles_0] => audiences [:bundles_1] => xxxx[:bundles_2] => xxxx[:bundles_3] => xxxx) in xmlsitemap_taxonomy_xmlsitemap_index_links() (line 38 of C:\pathgoeshere\xmlsitemap\xmlsitemap_taxonomy\xmlsitemap_taxonomy.module).
The "USING" syntax isn't compatible with SQL Server.
Comment | File | Size | Author |
---|
Comments
Comment #1
azinck CreditAttribution: azinck commentedI've refactored all the queries in xmlsitemap_taxonomy.module to use db_select().
Comment #2
Dave ReidThat's strange that SQL server doesn't support USING() which is standard via SQL-99.
It would be easier to convert the queries to just use
ON table1.field = table2.field
rather than converting to DBTNG.Comment #3
azinck CreditAttribution: azinck commentedYeah...I just figured we'd switch to DBTNG one query at a time, and since I was already looking at it...
I guess you won't take this as-is?
Comment #4
Dave ReidThis query does not need to be converted, but should be using a better placeholder of :tid instead of %d.
Comment #5
azinck CreditAttribution: azinck commentedPlaceholder updated.
Comment #6
Chris Matthews CreditAttribution: Chris Matthews commentedThe 4 year old patch in #5 to xmlsitemap_taxonomy.module does not apply to the latest xmlsitemap 7.x-2.x-dev and if still applicable needs a reroll.