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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.2.6, 3.0.4, 3.4
    • None
    • None
    • 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

              snazy Robert Stupp
              snazy Robert Stupp
              Robert Stupp
              Stefania Alborghetti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: