Make WordPress Core


Ignore:
Timestamp:
09/02/2016 12:18:49 AM (8 years ago)
Author:
pento
Message:

Database: Find the correct table names in DELETE queries with table aliases

Previously, wpdb::get_table_from_query() would not find the correct table name in the query DELETE a FROM table a, due to not recognising the table alias immediately after the DELETE as correct syntax.

Fixes #37660.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/db.php

    r37602 r38507  
    563563            "DELETE IGNORE $table",
    564564            "DELETE LOW_PRIORITY FROM $table",
     565            "DELETE a FROM $table a",
     566            "DELETE `a` FROM $table a",
    565567
    566568            // STATUS
Note: See TracChangeset for help on using the changeset viewer.