[ 
https://issues.apache.org/jira/browse/CASSANDRA-5795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sylvain Lebresne updated CASSANDRA-5795:
----------------------------------------

    Attachment: 5795.txt

CASSANDRA-5616 was indeed slightly more work that I though for collections, my 
bad. Attaching patch to fix (on the plus side, if we ever want to support bind 
markers inside collections (not that I think it's useful), the code will be 
mostly there). I've pushed a dtest too.
                
> 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
>         Attachments: 5795.txt
>
>
> 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