Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-15020

Invalid CQL in documentation

    XMLWordPrintableJSON

Details

    Description

       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;
       

      Attachments

        1. CASSANDRA-15020-trunk-3.11.patch
          2 kB
          C. Scott Andreas
        2. CASSANDRA-15020-3.0.patch
          1 kB
          C. Scott Andreas

        Activity

          People

            cscotta C. Scott Andreas
            lucinda Liudmila Kornilova
            C. Scott Andreas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: