Repository: cassandra Updated Branches: refs/heads/cassandra-3.5 89bd93502 -> 2dab42bce refs/heads/trunk d3f4ae842 -> 2750b18f9
recommit CASSANDRA-10817 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/2dab42bc Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/2dab42bc Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/2dab42bc Branch: refs/heads/cassandra-3.5 Commit: 2dab42bce7ce1fe6c6dfee1c6fd8ad5a09734e37 Parents: 89bd935 Author: Marcus Eriksson <marc...@apache.org> Authored: Fri Apr 8 13:03:25 2016 +0200 Committer: Marcus Eriksson <marc...@apache.org> Committed: Fri Apr 8 13:03:25 2016 +0200 ---------------------------------------------------------------------- src/java/org/apache/cassandra/cql3/Cql.g | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/2dab42bc/src/java/org/apache/cassandra/cql3/Cql.g ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/cql3/Cql.g b/src/java/org/apache/cassandra/cql3/Cql.g index 5cb479c..d191007 100644 --- a/src/java/org/apache/cassandra/cql3/Cql.g +++ b/src/java/org/apache/cassandra/cql3/Cql.g @@ -1088,7 +1088,7 @@ alterUserStatement returns [AlterRoleStatement stmt] RoleOptions opts = new RoleOptions(); RoleName name = new RoleName(); } - : K_ALTER K_USER u=username { name.setName($u.text, false); } + : K_ALTER K_USER u=username { name.setName($u.text, true); } ( K_WITH userPassword[opts] )? ( K_SUPERUSER { opts.setOption(IRoleManager.Option.SUPERUSER, true); } | K_NOSUPERUSER { opts.setOption(IRoleManager.Option.SUPERUSER, false); } ) ? @@ -1103,7 +1103,7 @@ dropUserStatement returns [DropRoleStatement stmt] boolean ifExists = false; RoleName name = new RoleName(); } - : K_DROP K_USER (K_IF K_EXISTS { ifExists = true; })? u=username { name.setName($u.text, false); $stmt = new DropRoleStatement(name, ifExists); } + : K_DROP K_USER (K_IF K_EXISTS { ifExists = true; })? u=username { name.setName($u.text, true); $stmt = new DropRoleStatement(name, ifExists); } ; /**