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

Cannot bind variables to USE statements

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 2.0.12, 2.1.3
    • Component/s: Legacy/CQL
    • Labels:

      Description

      Attempting to bind a variable for a USE query results in a syntax error.

      Example Invocation:

      ResultSet result = session.execute("USE ?", "system");
      

      Error:

      ERROR SYNTAX_ERROR: line 1:4 no viable alternative at input '?', v=2
      

        Attachments

          Activity

            People

            • Assignee:
              blerer Benjamin Lerer Assign to me
              Reporter:
              mstump Matt Stump
              Authors:
              Benjamin Lerer
              Reviewers:
              Aleksey Yeschenko

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment