diff options
author | gluh@gluh.mysql.r18.ru <> | 2003-03-11 13:49:06 +0400 |
---|---|---|
committer | gluh@gluh.mysql.r18.ru <> | 2003-03-11 13:49:06 +0400 |
commit | e7f4bf5b278cefce3f7818f5683a57010569521f (patch) | |
tree | 86350085995b2dde4c6a3814bb31eac98763b5d0 /sql/sql_yacc.yy | |
parent | 2022b7b68f5dd0e87b428a8082f04cc1f3c24037 (diff) | |
download | mariadb-git-e7f4bf5b278cefce3f7818f5683a57010569521f.tar.gz |
Added 'PURGE LOGS BEFORE' command
Added expire-logs-days option
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r-- | sql/sql_yacc.yy | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 19b75d814a2..cfd514b65a4 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -3565,10 +3565,9 @@ purge: ; purge_options: - LOGS_SYM - purge_option - | MASTER_SYM LOGS_SYM - purge_option; + LOGS_SYM purge_option + | MASTER_SYM LOGS_SYM purge_option + ; purge_option: TO_SYM TEXT_STRING @@ -3586,7 +3585,8 @@ purge_option: Item *tmp= new Item_func_unix_timestamp($2); Lex->sql_command = SQLCOM_PURGE_BEFORE; Lex->purge_time= tmp->val_int(); - }; + } + ; /* kill threads */ @@ -3596,7 +3596,6 @@ kill: LEX *lex=Lex; if ($2->check_cols(1) || $2->fix_fields(lex->thd, 0, &$2)) { - send_error(lex->thd, ER_SET_CONSTANTS_ONLY); YYABORT; } |