Michaël Figuière created CASSANDRA-9253:
-------------------------------------------

             Summary: Bind markers should be allowed in function arguments of 
Selectors
                 Key: CASSANDRA-9253
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9253
             Project: Cassandra
          Issue Type: Improvement
            Reporter: Michaël Figuière
            Priority: Minor


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:
{code}
session.prepare("SELECT k, f(v, ?) FROM * t1;");
{code}

Returns the following error:
{noformat}
Bind variables cannot be used for keyspace names
{noformat}

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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to