1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-15696 Implement SHOW CREATE SERVER

One change is that if the port is not supplied or out of bound, the
old behaviour is to print 3306. The new behaviour is to not print
it (if not supplied) or the out of bound value.
This commit is contained in:
Yuchen Pei
2024-08-12 17:01:14 +10:00
parent d2eba35653
commit 35cebfdc51
63 changed files with 220 additions and 82 deletions

View File

@@ -5097,6 +5097,10 @@ mysql_execute_command(THD *thd, bool is_called_from_prepared_stmt)
WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_SHOW);
res= show_create_db(thd, lex);
break;
case SQLCOM_SHOW_CREATE_SERVER:
WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_SHOW);
res= mysql_show_create_server(thd, &lex->name);
break;
case SQLCOM_CREATE_EVENT:
case SQLCOM_ALTER_EVENT:
#ifdef HAVE_EVENT_SCHEDULER