mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Added RESET command
Docs/manual.texi: Changed max packet limit from 24M -> 16M
This commit is contained in:
parent
1198be81c2
commit
31ed959ba3
5 changed files with 29 additions and 9 deletions
|
|
@ -248,6 +248,7 @@ static SYMBOL symbols[] = {
|
|||
{ "RENAME", SYM(RENAME),0,0},
|
||||
{ "REPAIR", SYM(REPAIR),0,0},
|
||||
{ "REPLACE", SYM(REPLACE),0,0},
|
||||
{ "RESET", SYM(RESET_SYM),0,0},
|
||||
{ "RESTORE", SYM(RESTORE_SYM),0,0},
|
||||
{ "RESTRICT", SYM(RESTRICT),0,0},
|
||||
{ "RETURNS", SYM(UDF_RETURNS_SYM),0,0},
|
||||
|
|
|
|||
|
|
@ -47,7 +47,8 @@ enum enum_sql_command {
|
|||
SQLCOM_ROLLBACK, SQLCOM_COMMIT, SQLCOM_SLAVE_START, SQLCOM_SLAVE_STOP,
|
||||
SQLCOM_BEGIN, SQLCOM_LOAD_MASTER_TABLE, SQLCOM_SHOW_CREATE,
|
||||
SQLCOM_SHOW_MASTER_STAT, SQLCOM_SHOW_SLAVE_STAT, SQLCOM_CHANGE_MASTER,
|
||||
SQLCOM_RENAME_TABLE, SQLCOM_BACKUP_TABLE, SQLCOM_RESTORE_TABLE
|
||||
SQLCOM_RENAME_TABLE, SQLCOM_BACKUP_TABLE, SQLCOM_RESTORE_TABLE,
|
||||
SQLCOM_RESET
|
||||
};
|
||||
|
||||
enum lex_states { STATE_START, STATE_CHAR, STATE_IDENT,
|
||||
|
|
|
|||
|
|
@ -1674,6 +1674,7 @@ mysql_execute_command(void)
|
|||
break;
|
||||
}
|
||||
case SQLCOM_FLUSH:
|
||||
case SQLCOM_RESET:
|
||||
if (check_access(thd,RELOAD_ACL,any_db) || check_db_used(thd, tables))
|
||||
goto error;
|
||||
if (reload_acl_and_cache(thd, lex->type, tables))
|
||||
|
|
|
|||
|
|
@ -106,6 +106,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
|
|||
%token SELECT_SYM
|
||||
%token MASTER_SYM
|
||||
%token REPAIR
|
||||
%token RESET_SYM
|
||||
%token SLAVE
|
||||
%token START_SYM
|
||||
%token STOP_SYM
|
||||
|
|
@ -491,7 +492,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
|
|||
%type <NONE>
|
||||
query verb_clause create change select drop insert replace insert2
|
||||
insert_values update delete show describe load alter optimize flush
|
||||
begin commit rollback slave master_def master_defs
|
||||
reset begin commit rollback slave master_def master_defs
|
||||
repair restore backup analyze check rename
|
||||
field_list field_list_item field_spec kill
|
||||
select_item_list select_item values_list no_braces
|
||||
|
|
@ -550,6 +551,7 @@ verb_clause:
|
|||
| rename
|
||||
| repair
|
||||
| replace
|
||||
| reset
|
||||
| restore
|
||||
| revoke
|
||||
| rollback
|
||||
|
|
@ -2231,6 +2233,17 @@ opt_table_list:
|
|||
/* empty */ {}
|
||||
| table_list {}
|
||||
|
||||
reset:
|
||||
RESET_SYM {Lex->sql_command= SQLCOM_RESET; Lex->type=0; } reset_options
|
||||
|
||||
reset_options:
|
||||
reset_options ',' reset_option
|
||||
| reset_option
|
||||
|
||||
reset_option:
|
||||
SLAVE { Lex->type|= REFRESH_SLAVE; }
|
||||
| MASTER_SYM { Lex->type|= REFRESH_MASTER; }
|
||||
|
||||
/* kill threads */
|
||||
|
||||
kill:
|
||||
|
|
@ -2482,6 +2495,7 @@ keyword:
|
|||
| RAID_TYPE {}
|
||||
| RELOAD {}
|
||||
| REPAIR {}
|
||||
| RESET_SYM {}
|
||||
| RESTORE_SYM {}
|
||||
| ROLLBACK_SYM {}
|
||||
| ROWS_SYM {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue