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:
@@ -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
|
||||
|
Reference in New Issue
Block a user