diff --git a/doc/sql.extensions/README.user_management b/doc/sql.extensions/README.user_management index dd551b7554..67e24df047 100644 --- a/doc/sql.extensions/README.user_management +++ b/doc/sql.extensions/README.user_management @@ -1,4 +1,4 @@ -SQL Language Extension: CREATE/ALTER/CREATE_OR_ALTER/DROP USER +SQL Language Extension: CREATE/ALTER/CREATE_OR_ALTER/RECREATE/DROP USER Implements capability to manage users from regular database attachment. @@ -9,11 +9,11 @@ Author: Syntax is: - CREATE USER name [ options ] [ TAGS ( tag [, tag [, tag ...]] ) ] - ALTER USER name [ SET ] [ options ] [ TAGS ( tag [, tag [, tag ...]] ) ] - ALTER CURRENT USER [ SET ] [ options ] [ TAGS ( tag [, tag [, tag ...]] ) ] - CREATE OR ALTER USER name [ SET ] [ options ] [ TAGS ( tag [, tag [, tag ...]] ) ] - RECREATE USER name [ options ] [ TAGS ( tag [, tag [, tag ...]] ) ] + CREATE USER name [ options ]; + ALTER USER name [ SET ] [ options ]; + ALTER CURRENT USER [ SET ] [ options ]; + CREATE OR ALTER USER name [ SET ] [ options ]; + RECREATE USER name [ options ]; DROP USER name [ USING PLUGIN name ]; where OPTIONS is a list of following options: @@ -24,6 +24,7 @@ where OPTIONS is a list of following options: - ACTIVE - INACTIVE - USING PLUGIN name +- TAGS ( tag [, tag [, tag ...]] ) and each TAG may have one of two forms: name = 'string value' diff --git a/src/dsql/parse.y b/src/dsql/parse.y index ba1336dfe5..7a970d824c 100644 --- a/src/dsql/parse.y +++ b/src/dsql/parse.y @@ -6999,7 +6999,6 @@ create_user_clause $$ = newNode(CreateAlterUserNode::USER_ADD, *$1); } user_fixed_list_opt($2) - user_var_opts($2) { $$ = $2; } @@ -7012,7 +7011,6 @@ alter_user_clause $$ = newNode(CreateAlterUserNode::USER_MOD, *$1); } user_fixed_list_opt($3) - user_var_opts($3) { $$ = $3; } @@ -7025,7 +7023,6 @@ alter_cur_user_clause $$ = newNode(CreateAlterUserNode::USER_MOD, ""); } user_fixed_list_opt($2) - user_var_opts($2) { $$ = $2; } @@ -7038,7 +7035,6 @@ replace_user_clause $$ = newNode(CreateAlterUserNode::USER_RPL, *$1); } user_fixed_list_opt($3) - user_var_opts($3) { $$ = $3; } @@ -7073,11 +7069,6 @@ user_fixed_option($node) | INACTIVE { setClause($node->active, "ACTIVE/INACTIVE", false); } | USING PLUGIN valid_symbol_name { setClause($node->plugin, "USING PLUGIN", $3); } - ; - -%type user_var_opts() -user_var_opts($node) - : // nothing | TAGS '(' user_var_list($node) ')' ;