Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-8100 now.

Topic-oriented search fails with PostgreSQL (fix completed in vcs)

Searching on a single search term with all defaults except "Search within" changed to 'Topic titles only' or "First post of topics only" will fail with this message:

SQL ERROR [ postgres ]

ERROR: missing FROM-clause entry for table "t" LINE 1: ...s p ON (m0.post_id = p.post_id) WHERE p.post_id = t.topic_fi... ^ []

SQL

SELECT COUNT(DISTINCT p.post_id) as total_results FROM phpbb_search_wordmatch m0 LEFT JOIN phpbb_posts p ON (m0.post_id = p.post_id) WHERE p.post_id = t.topic_first_post_id AND m0.word_id = 66526 AND m0.title_match = 1

BACKTRACE

FILE: includes/db/postgres.php
LINE: 177
CALL: dbal->sql_error()

FILE: includes/search/fulltext_native.php
LINE: 663
CALL: dbal_postgres->sql_query()

FILE: search.php
LINE: 418
CALL: fulltext_native->keyword_search()

Comments / History

Changed ticket severity from "Uncategorised/normal" to "Severe"

Action performed by A_Jelly_Doughnut (MOD Team Member) on Jan 16th 2009, 13:27

Changed ticket severity from "Severe" to "Possibly invalid"

Action performed by Kellanved (Former Team Member) on Jan 16th 2009, 14:10

Changed ticket severity from "Possibly invalid" to "Severe"

Action performed by Kellanved (Former Team Member) on Jan 16th 2009, 14:21

Changed ticket status from "New" to "Reviewed"

Action performed by Kellanved (Former Team Member) on Jan 16th 2009, 14:23

Edited ticket

Action performed by ToonArmy (Development Team Member) on Jan 16th 2009, 15:43

Assigned ticket to user "naderman"

Action performed by naderman (Development Team Leader) on Jan 19th 2009, 10:12

Posted by Acyd Burn (Server Manager) on Apr 18th 2009, 17:29

Seems to be generally the case, also with MySQL.

Posted by Acyd Burn (Server Manager) on Apr 18th 2009, 17:41

Ok, sorry, the error i got was related to a change in SVN solely - this does not happen in 3.0.4. Are you sure you use 3.0.4 and not by any chance a SVN version?

Posted by Acyd Burn (Server Manager) on Apr 18th 2009, 17:44

Sorry again... now i see the topic join is not done at all for non-mysql dbms if it is set to true. :o

Assigned ticket to user "Acyd Burn"

Action performed by Acyd Burn (Server Manager) on Apr 18th 2009, 17:46

Linked ticket with changeset: r9473

Action performed by Anonymous (I am too lazy to register) on Apr 18th 2009, 17:46

Changed ticket status from "Reviewed" to "Fix in progress"

Action performed by Acyd Burn (Server Manager) on Apr 18th 2009, 17:51

Posted by Acyd Burn (Server Manager) on Apr 18th 2009, 17:51

Fix committed:
http://code.phpbb.com/repositories/revision/phpbb/9473

I will let the status be "Fix in progress" because i am currently not able to test the fix properly.

Changed ticket status from "Fix in progress" to "Fix completed in SVN"

Action performed by Acyd Burn (Server Manager) on Aug 1st 2009, 11:51

Posted by Acyd Burn (Server Manager) on Aug 1st 2009, 11:51

Now confirmed this by myself. :)

Ticket details

Duplicates of this ticket

Related SVN changesets