Aleksey Yeschenko created CASSANDRA-5795:
--------------------------------------------

             Summary: now() is being rejected in INSERTs when inside collections
                 Key: CASSANDRA-5795
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5795
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 1.2.6
            Reporter: Aleksey Yeschenko
            Assignee: Sylvain Lebresne


Lists, Sets and Maps reject NonTerminal terms in prepare:

{code}
    if (t instanceof Term.NonTerminal)
                    throw new InvalidRequestException(String.format("Invalid 
list literal for %s: bind variables are not supported inside collection 
literals", receiver));
{code}

and now() is instanceof NonTerminal since CASSANDRA-5616, hence

{noformat}
cqlsh:test> insert into demo (id, timeuuids) values (0, [now()]);
Bad Request: Invalid list literal for tus: bind variables are not supported 
inside collection literals
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to