[wp-trac] [WordPress Trac] #35361: Error in SQL syntax search page

WordPress Trac noreply at wordpress.org
Wed Jan 20 04:37:15 UTC 2016


#35361: Error in SQL syntax search page
----------------------------+---------------------------
 Reporter:  salvoaranzulla  |       Owner:  boonebgorges
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  4.4.2
Component:  Query           |     Version:  4.4
 Severity:  normal          |  Resolution:  fixed
 Keywords:  fixed-major     |     Focuses:
----------------------------+---------------------------
Changes (by dd32):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36354"]:
 {{{
 #!CommitTicketReference repository="" revision="36354"
 Query: Avoid invalid SQL when building ORDER BY clause using long search
 strings.

 The introduction of negative search terms in 4.4 [34934] introduced the
 possibility that the ORDER BY clause of a search query could be assembled
 in
 such a way as to create invalid syntax. The current changeset fixes this
 by
 ensuring that the ORDER BY clause corresponding to the search terms is
 excluded when it would otherwise be empty.

 Merges [36251] to the 4.4 branch.
 Props salvoaranzulla, boonebgorges.
 Fixes #35361.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35361#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list