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

cqlsh pg-style-strings broken if line ends with ';'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 2.2.6, 3.0.4, 3.4
    • Component/s: None
    • Labels:
      None
    • Severity:
      Low

      Description

      If one separate line in a multi-line pg-style-string ends with a semicolon in cqlsh, cqlsh incorrectly assumes that that is the end of the statement.

      cqlsh:foo> insert into tab (pk, val) values (2, $$
             ... wepofjef
             ... wefoijew
             ... ;
      SyntaxException: <ErrorMessage code=2000 [Syntax error in CQL query] message="line 4:0 mismatched character ';' expecting '$'">
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                snazy Robert Stupp
                Reporter:
                snazy Robert Stupp
                Authors:
                Robert Stupp
                Reviewers:
                Stefania Alborghetti
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: