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

Can't insert only a key in CQL3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.0 rc1
    • None
    • None
    • Low

    Description

      The following should work but well, doesnt:

      cqlsh:k> CREATE TABLE t (k int PRIMARY KEY, v int);
      cqlsh:k> INSERT INTO t (k) VALUES (0);
      Bad Request: line 1:27 required (...)+ loop did not match anything at input ')'
      

      The reason is just that the parser for INSERT has never been updated from the time where providing only a key was illegal.

      Attachments

        1. 5040.patch
          1 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            slebresne Sylvain Lebresne
            Sylvain Lebresne
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: