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

CLI escaped single quote parsing gives errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7.6, 0.8.0
    • Legacy/Tools
    • windows vista, linux

    • Low

    Description

      Escaping quotes in cli commands causes parsing errors.

      some examples::::
      No need to create columns etc, it doesn't get through parsing the expression::

      cassandra-cli

      1.
      set column['KEY+vals'][VALUE] = 'VAL\'' ;
      Syntax error at position 41: mismatched character '<EOF>' expecting '''

      2.
      set column['KEY+val\'s'][VALUE] = 'VAL' ;
      Syntax error at position 41: mismatched character '<EOF>' expecting '''

      3.
      set column['KEY+vals\''][VALUE] = 'VAL\'' ;
      Syntax error at position 38: unexpected "\" for `set column['KEY+vals\''][VALUE] = 'VAL\'' ;`.

      Attachments

        1. CASSANDRA-2623-0.7.patch
          2 kB
          Pavel Yaskevich
        2. CASSANDRA-2623-trunk.patch
          2 kB
          Pavel Yaskevich

        Activity

          People

            xedin Pavel Yaskevich
            rday rday
            Pavel Yaskevich
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: