Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
* warning: pg_query(): Query failed: ERROR: syntax error at or near "WHERE" at character 49 in /home/brenda/projects/drupal/HEAD/includes/database.pgsql.inc on line 155.
* user warning: query: SELECT t.tid FROM term_node t INNER JOIN node n WHERE t.vid = n.vid AND n.nid = 0 ORDER BY t.vid DESC LIMIT 1 OFFSET 0 in /home/brenda/projects/drupal/HEAD/modules/forum/forum.module on line 254.
I've attached a path that adds the missing "ON" clause
SELECT t.tid FROM term_node t INNER JOIN node n WHERE t.vid = n.vid AND n.nid = 0 ORDER BY t.vid DESC LIMIT 1 OFFSET 0
becomes
SELECT t.tid FROM term_node t INNER JOIN node n ON t.vid = n.vid WHERE AND n.nid = 0 ORDER BY t.vid DESC LIMIT 1 OFFSET 0
Comment | File | Size | Author |
---|---|---|---|
forum.module_23.patch | 979 bytes | Shiny | |
Comments
Comment #1
chx CreditAttribution: chx commentedComment #2
Gábor HojtsyWell, the patch you submitted thankfully contained the correct code (unlike your explanation here, which has a copy-paste typo). So committed, thanks.
Comment #3
(not verified) CreditAttribution: commented