[wp-trac] [WordPress Trac] #38751: WPDB: get_table_from_query leaves SHOW results LIKE-escaped

WordPress Trac noreply at wordpress.org
Thu Nov 17 04:20:24 UTC 2016


#38751: WPDB: get_table_from_query leaves SHOW results LIKE-escaped
--------------------------------------+---------------------
 Reporter:  andy                      |       Owner:  pento
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.6.2
Component:  Database                  |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by pento):

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


Comment:

 In [changeset:"39275"]:
 {{{
 #!CommitTicketReference repository="" revision="39275"
 Database: Add support for `LIKE`-escaped tables in
 `::get_table_from_query()`.

 The `SHOW TABLES LIKE` query can be used to search for tables that match a
 pattern, `wp\_123\_%`, for example. While this isn't the name of an actual
 table, the `wp_123_` prefix can be used by database drop-ins to direct the
 query correctly. This change removes the escaping and `%` modifier, to
 provide this usable prefix.

 Props andy, pento.
 Fixes #38751.
 }}}

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


More information about the wp-trac mailing list