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

Bind markers should be allowed in function arguments of Selectors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      As a complement to CASSANDRA-9243, bind markers should be allowed as an argument of a function call in SELECT statements' selectors.

      Currently, executing the following code:

      session.prepare("SELECT k, f(v, ?) FROM * t1;");
      

      Returns the following error:

      Bind variables cannot be used for keyspace names
      

      Bind markers are currently supported as functions arguments when used in INSERT and UPDATE statements as well as in SELECT statements' WHERE clauses. The fact that they're not supported in selectors is therefore inconsistent.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mfiguiere Michaël Figuière
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: