You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Liudmila Kornilova (JIRA)" <ji...@apache.org> on 2019/02/13 13:01:00 UTC

[jira] [Created] (CASSANDRA-15020) Invalid CQL in documentation

Liudmila Kornilova created CASSANDRA-15020:
----------------------------------------------

             Summary: Invalid CQL in documentation
                 Key: CASSANDRA-15020
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15020
             Project: Cassandra
          Issue Type: Improvement
          Components: Documentation/Website
            Reporter: Liudmila Kornilova


 [http://cassandra.apache.org/doc/4.0/cql/security.html]

1.

Wrong:

CREATE USER *IF EXISTS* alice WITH PASSWORD 'password_a' SUPERUSER;
 CREATE ROLE *IF EXISTS* alice WITH PASSWORD = 'password_a' AND LOGIN = true AND SUPERUSER = true;

Correct:

CREATE USER IF *NOT* EXISTS alice WITH PASSWORD 'password_a' SUPERUSER;
CREATE ROLE IF *NOT* EXISTS alice WITH PASSWORD = 'password_a' AND LOGIN = true AND SUPERUSER = true; 

 

2. 

 Wrong:

CREATE ROLE alice WITH PASSWORD = 'password_a' *WITH* LOGIN = true;
CREATE ROLE alice WITH PASSWORD = 'password_a' *WITH* LOGIN = true;

Correct:

CREATE ROLE alice WITH PASSWORD = 'password_a' *AND* LOGIN = true;
CREATE ROLE alice WITH PASSWORD = 'password_a' *AND* LOGIN = true;
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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