[wp-trac] [WordPress Trac] #25775: WP_Date_Query table prefixing

WordPress Trac noreply at wordpress.org
Thu Dec 5 07:05:56 UTC 2013


#25775: WP_Date_Query table prefixing
--------------------------+--------------------
 Reporter:  ew_holmes     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.7.2
Component:  Query         |     Version:  3.7
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by Viper007Bond):

 Prefixing table names seems like a good idea to avoid ambiguity but I'm
 confused as to how you think comments were broken. When querying for
 comments that match certain date parameters, the column is defaulted to
 the correct value:

 http://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/comment.php?rev=26492#L396

 Perhaps I'm forgetting something but when is the comments table `JOIN`ed
 with anything else?

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25775#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list