-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-30170 ha_spider::delete_table() should report table not exist
All Spider tables are recorded in the system table mysql.spider_tables. Deleting a spider table removes the corresponding rows from the system table, among other things. This patch makes it so that if spider could not find any record in the system table to delete for a given table, it should correctly report that no such Spider table exists.
- Loading branch information
1 parent
7801c6d
commit 9e9e0b9
Showing
4 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
install soname 'ha_spider'; | ||
DROP TABLE non_existing_table; | ||
ERROR 42S02: Unknown table 'test.non_existing_table' | ||
create or replace table non_existing_table (c int) engine=Spider; | ||
drop table non_existing_table; | ||
Warnings: | ||
Warning 1620 Plugin is busy and will be uninstalled on shutdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
install soname 'ha_spider'; | ||
--error ER_BAD_TABLE_ERROR | ||
DROP TABLE non_existing_table; | ||
# Test that create or replace a non existing spider table work | ||
create or replace table non_existing_table (c int) engine=Spider; | ||
drop table non_existing_table; | ||
--disable_query_log | ||
--source ../../include/clean_up_spider.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters