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

CQLSH grammar for != syntax in LWT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Not A Problem
    • None
    • Legacy/Tools
    • None
    • Cassandra 2.2.0

    • Normal

    Description

      According to CASSANDRA-6839, LWT now support non equal relations like <, <=, >, >= and !=.

      A simple test with cqlsh shows that the grammar for != is not updated yet

      cqlsh:test> create table normal(id int, val text, primary key(id));
      cqlsh:test> insert into normal(id,val) VALUES ( 1,'value');
      cqlsh:test> delete from normal where id=1 IF val != 'value';
      Invalid syntax at line 1, char 38
        delete from normal where id=1 IF val != 'value';
      

      Attachments

        Activity

          People

            stefania Stefania Alborghetti
            doanduyhai DuyHai Doan
            Stefania Alborghetti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: