File tree Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ static int example_init_func(void *p)
262
262
example_hton->table_options = example_table_option_list;
263
263
example_hton->field_options = example_field_option_list;
264
264
example_hton->tablefile_extensions = ha_example_exts;
265
- example_hton->drop_table = [](handlerton *, const char *) { return 0 ; };
265
+ example_hton->drop_table = [](handlerton *, const char *) { return - 1 ; };
266
266
267
267
DBUG_RETURN (0 );
268
268
}
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ static int oqgraph_init(void *p)
192
192
hton->discover_table_structure = oqgraph_discover_table_structure;
193
193
194
194
hton->close_connection = oqgraph_close_connection;
195
- hton->drop_table = [](handlerton *, const char *) { return 0 ; };
195
+ hton->drop_table = [](handlerton *, const char *) { return - 1 ; };
196
196
197
197
oqgraph_init_done= TRUE ;
198
198
return 0 ;
Original file line number Diff line number Diff line change @@ -30,3 +30,14 @@ update graph set origid=123;
30
30
ERROR HY000: Table 'graph' is read only
31
31
DROP TABLE graph_base;
32
32
DROP TABLE graph;
33
+ #
34
+ # End of 10.0 tests
35
+ #
36
+ #
37
+ # MDEV-25373 DROP TABLE doesn't raise error while dropping non-existing table in MariaDB 10.5.9 when OQGraph SE is loaded to the server
38
+ #
39
+ drop table foobar;
40
+ ERROR 42S02: Unknown table 'test.foobar'
41
+ #
42
+ # End of 10.5 tests
43
+ #
Original file line number Diff line number Diff line change @@ -48,3 +48,16 @@ update graph set origid=123;
48
48
DROP TABLE graph_base;
49
49
DROP TABLE graph;
50
50
51
+ --echo #
52
+ --echo # End of 10.0 tests
53
+ --echo #
54
+
55
+ --echo #
56
+ --echo # MDEV-25373 DROP TABLE doesn't raise error while dropping non-existing table in MariaDB 10.5.9 when OQGraph SE is loaded to the server
57
+ --echo #
58
+ --error 1051
59
+ drop table foobar;
60
+
61
+ --echo #
62
+ --echo # End of 10.5 tests
63
+ --echo #
You can’t perform that action at this time.
0 commit comments