mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
Bug #30036: SHOW TABLE TYPES causes the debug client to crash
SHOW TABLE TYPES is a (to be deprecated) synonym for SHOW STORAGE ENGINES. Fixed to use the right schema table in addition to issuing a warning. mysql-test/r/show_check.result: Bug #30036: test case mysql-test/t/show_check.test: Bug #30036: test case sql/sql_yacc.yy: Bug #30036: use the right schema table
This commit is contained in:
parent
5cb265d874
commit
c7150fd814
3 changed files with 11 additions and 0 deletions
|
@ -1351,4 +1351,5 @@ DROP PROCEDURE p1;
|
|||
DROP FUNCTION f1;
|
||||
DROP TABLE t1;
|
||||
DROP EVENT ev1;
|
||||
SHOW TABLE TYPES;
|
||||
End of 5.1 tests
|
||||
|
|
|
@ -977,4 +977,12 @@ DROP FUNCTION f1;
|
|||
DROP TABLE t1;
|
||||
DROP EVENT ev1;
|
||||
|
||||
#
|
||||
# Bug #30036: SHOW TABLE TYPES causes the debug client to crash
|
||||
#
|
||||
--disable_result_log
|
||||
SHOW TABLE TYPES;
|
||||
--enable_result_log
|
||||
|
||||
|
||||
--echo End of 5.1 tests
|
||||
|
|
|
@ -8729,6 +8729,8 @@ show_param:
|
|||
LEX *lex=Lex;
|
||||
lex->sql_command= SQLCOM_SHOW_STORAGE_ENGINES;
|
||||
WARN_DEPRECATED(yythd, "5.2", "SHOW TABLE TYPES", "'SHOW [STORAGE] ENGINES'");
|
||||
if (prepare_schema_table(YYTHD, lex, 0, SCH_ENGINES))
|
||||
MYSQL_YYABORT;
|
||||
}
|
||||
| opt_storage ENGINES_SYM
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue