[wp-trac] [WordPress Trac] #49479: Does $wpdb->get_row() add LIMIT 1 to the query?

WordPress Trac noreply at wordpress.org
Thu Feb 20 01:01:53 UTC 2020


#49479: Does $wpdb->get_row() add LIMIT 1 to the query?
-------------------------+-----------------------------
 Reporter:  lambasoft    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Database     |    Version:  5.3.2
 Severity:  major        |   Keywords:
  Focuses:  performance  |
-------------------------+-----------------------------
 I've been trying to investigate either $wpdb->get_row() adds a LIMIT 1
 dynamically to the executed query, since it only returns 1 row. But
 couldn't find the LIMIT added anywhere in the code.

 Does that mean that $wpdb->get_row() does not add LIMIT 1 dynamically to
 the query? If so, shouldn't it?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49479>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list