cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CASSANDRA-7685) Prepared marker for collections inside UDT do not handle null values
Date Mon, 04 Aug 2014 16:02:12 GMT

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

Brandon Williams reassigned CASSANDRA-7685:
-------------------------------------------

    Assignee: Olivier Michallat  (was: Sylvain Lebresne)

> Prepared marker for collections inside UDT do not handle null values
> --------------------------------------------------------------------
>
>                 Key: CASSANDRA-7685
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7685
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Olivier Michallat
>            Assignee: Olivier Michallat
>             Fix For: 2.1.0
>
>         Attachments: 7685.txt
>
>
> The fix for CASSANDRA-7472 does not handle null values. The following causes an NPE to
be thrown:
> {code}
> // CREATE TYPE phone (alias text, number text)
> // CREATE TYPE address (street text, phones set<phone>)
> // CREATE TABLE user (id int PRIMARY KEY, addr address)
> PreparedStatement ps = session.prepare("INSERT INTO user (id, addr) VALUES (1, { street:
'foo', phones: ? })");
> BoundStatement bs = ps.bind().setSet(0, null);
> session.execute(bs);
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message