[buddypress-trac] [BuddyPress Trac] #7332: Use `WHERE 1=1` instead of eliminating `WHERE` clause

buddypress-trac noreply at wordpress.org
Thu Jan 5 22:28:45 UTC 2017


#7332: Use `WHERE 1=1` instead of eliminating `WHERE` clause
----------------------------------------+------------------
 Reporter:  boonebgorges                |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  2.8
Component:  Core                        |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |
----------------------------------------+------------------

Comment (by slaffik):

 In [changeset:"11376"]:
 {{{
 #!CommitTicketReference repository="" revision="11376"
 BP_User_Query: add 1=1 to WHERE clause.

 See the discussion in #7290. It would make our query SQL clauses easier to
 debug and modify if they always contained a WHERE clause.

 See #7332.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7332#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list