Last modified: 2011-02-08 21:56:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28940, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26940 - Namespace parameters search break execution in SQL error
Namespace parameters search break execution in SQL error
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
1.18.x
All All
: Normal critical (vote)
: ---
Assigned To: Nobody - You can work on this!
http://translatewiki.net/w/i.php?titl...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-25 19:26 UTC by Krinkle
Modified: 2011-02-08 21:56 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2011-01-25 19:26:43 UTC
See the following:

http://translatewiki.net/w/i.php?title=Special%3ASearch&redirs=0&search=Foobar&ns8=1

On translatewiki (running trunk) a plain search in the searchbar works (in most cases) but going to 'page 2' and/or changing the namespaces being search through breaks:

== Database error ==
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

  (SQL query hidden)

from within function "". Database returned error "1064: 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 'AND page_namespace IN ('8') LIMIT 20' at line 1 (localhost)".
Comment 1 Brion Vibber 2011-01-25 19:58:32 UTC
SELECT page_id, page_namespace, page_title FROM `page`,`searchindex` WHERE page_id=si_page AND MATCH(si_title) AGAINST('+foobar ' IN BOOLEAN MODE) AND AND page_namespace IN ('8') LIMIT 20 

It's the double "AND AND".
Comment 2 Brion Vibber 2011-01-25 20:02:02 UTC
Regression caused by r80856; fixed in r80982

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links