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

Sylvain Lebresne updated CASSANDRA-5081:
----------------------------------------

    Attachment: 5081.patch

Attaching patch to support nulls as values for bound variables. I note that 
there is no change to do to the binary protocol since it has always allowed 
nulls, they were just not correctly handled server side.
                
> Support null values in PreparedStatements parameters
> ----------------------------------------------------
>
>                 Key: CASSANDRA-5081
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5081
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Michaël Figuière
>            Assignee: Sylvain Lebresne
>             Fix For: 1.2.2
>
>         Attachments: 5081.patch
>
>
> Currently whenever developers want to use PreparedStatements, they need to 
> ensure that all their parameters are non null or they need to have several 
> PreparedStatements for each possible set of non null columns they want to 
> store. This is obviously not a satisfying solution considering that 'null' 
> values are a commonplace in applications. 
> 'null' values should be allowed as parameters of PreparedStatements in Binary 
> Protocol to solve this issue.
> This issue is obviously tightly coupled with CASSANDRA-3783 but they might be 
> fixed separately.

--
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