[wp-trac] [WordPress Trac] #24800: DROP TABLE error 1051 (Unknown table)

WordPress Trac noreply at wordpress.org
Thu Jul 18 22:01:02 UTC 2013


#24800: DROP TABLE error 1051 (Unknown table)
--------------------------+-----------------------------
 Reporter:  soulseekah    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Unit Tests    |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When dropping a table via `$wpdb->query` the query is rewritten to its
 temporary counterpart `DROP TEMPORARY TABLE`.

 http://core.trac.wordpress.org/browser/tests/trunk/includes/testcase.php#L55

 However, all `CREATE TABLE` queries are not rewritten to `CREATE TEMPORARY
 TABLE`, so when the time comes the database shoves an error into the face
 of anyone who's trying to drop a table.

 This is currently only relevant to custom tests extending from the
 `WP_UnitTestCase` class.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24800>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list