You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Johnny Miller (Jira)" <ji...@apache.org> on 2022/12/05 13:29:00 UTC

[jira] [Updated] (CASSANDRA-18092) Allow DB role names to prefix with a number

     [ https://issues.apache.org/jira/browse/CASSANDRA-18092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johnny Miller updated CASSANDRA-18092:
--------------------------------------
    Description: 
{{*Works -* CREATE ROLE IF NOT EXISTS test WITH PASSWORD='somepassword' AND LOGIN=true;}}
 
{{*Works* - CREATE ROLE IF NOT EXISTS test123 WITH PASSWORD='somepassword' AND LOGIN=true;}}
 
{{*Breaks* - CREATE ROLE IF NOT EXISTS 123test WITH PASSWORD='somepassword' AND LOGIN=true;}}
{color:#de350b}{{SyntaxException: line 1:26 no viable alternative at input '123' (CREATE ROLE IF NOT EXISTS [123]...)}}{color}{{{{}}{}}}
 
It would be helpful and more consistent to be able to prefix roles with a numeric value instead of only being able to do this as a suffix.

Env Details are:

[cqlsh 6.0.0 | Cassandra 4.0.3 | CQL spec 3.4.5 | Native protocol v5]

 

 

 

 

  was:
{{*Works -* CREATE ROLE IF NOT EXISTS test WITH PASSWORD='somepassword' AND LOGIN=true;}}
 
{{*Works* - CREATE ROLE IF NOT EXISTS test123 WITH PASSWORD='somepassword' AND LOGIN=true;}}
 
{{*Breaks* - CREATE ROLE IF NOT EXISTS 123test WITH PASSWORD='somepassword' AND LOGIN=true;}}
{color:#de350b}{{SyntaxException: line 1:26 no viable alternative at input '123' (CREATE ROLE IF NOT EXISTS [123]...)}}{color}{{{}{}}}
 
It would be helpful and more consistent to be able to prefix roles with a numeric value instead of only being able to do this as a suffix.

 

 

 


> Allow DB role names to prefix with a number
> -------------------------------------------
>
>                 Key: CASSANDRA-18092
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18092
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Johnny Miller
>            Priority: Normal
>
> {{*Works -* CREATE ROLE IF NOT EXISTS test WITH PASSWORD='somepassword' AND LOGIN=true;}}
>  
> {{*Works* - CREATE ROLE IF NOT EXISTS test123 WITH PASSWORD='somepassword' AND LOGIN=true;}}
>  
> {{*Breaks* - CREATE ROLE IF NOT EXISTS 123test WITH PASSWORD='somepassword' AND LOGIN=true;}}
> {color:#de350b}{{SyntaxException: line 1:26 no viable alternative at input '123' (CREATE ROLE IF NOT EXISTS [123]...)}}{color}{{{{}}{}}}
>  
> It would be helpful and more consistent to be able to prefix roles with a numeric value instead of only being able to do this as a suffix.
> Env Details are:
> [cqlsh 6.0.0 | Cassandra 4.0.3 | CQL spec 3.4.5 | Native protocol v5]
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org