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

Cannot bind variables to USE statements

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0.12, 2.1.3
    • Legacy/CQL

    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

        1. CASSANDRA-6952-2.0.txt
          1 kB
          Benjamin Lerer
        2. CASSANDRA-6952-2.1.txt
          5 kB
          Benjamin Lerer

        Activity

          People

            blerer Benjamin Lerer
            mstump Matt Stump
            Benjamin Lerer
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: