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

Bind markers should be allowed in function arguments of Selectors

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Duplicate
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: