cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10631) JSON Update not working with PreparedStatement
Date Thu, 19 Nov 2015 11:46:11 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-10631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15013401#comment-15013401
] 

Sylvain Lebresne commented on CASSANDRA-10631:
----------------------------------------------

I've rebased and updated the patch for 3.0 (I'm pretty certain there is no change in 3.1 that
impact the same area so I'll just merge on commit):

||2.2||3.0||
|[branch|https://github.com/pcmanus/cassandra/commits/10631-2.2]|[branch|https://github.com/pcmanus/cassandra/commits/10631-3.0]|
|[utests|http://cassci.datastax.com/job/pcmanus-10631-2.2-testall/1/]| [utests|http://cassci.datastax.com/job/pcmanus-10631-3.0-testall/2/]|
|[dtests|http://cassci.datastax.com/job/pcmanus-10631-2.2-dtest/1/]| [dtests|http://cassci.datastax.com/job/pcmanus-10631-3.0-dtest/1/]|

Results looks good except for the 3.0 unit tests which I've restarted because I apparently
picked a bad apple in my initial rebase on that branch so that there was some clearly unrelated
failures.


> JSON Update not working with PreparedStatement
> ----------------------------------------------
>
>                 Key: CASSANDRA-10631
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10631
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>         Environment: Windows 7, Datastax Java Driver 2.2.0-rc2
>            Reporter: Henrik Karlsson
>            Assignee: Sylvain Lebresne
>             Fix For: 2.2.x
>
>         Attachments: test-json.zip
>
>
> When using PreparedStatement to insert and update a row with JSON the first "INSERT INTO
{tablename} JSON ?" statement works OK. But when calling it a second time with a changed value
on a field the field is not updated. If I use a SimpleStatement instead ("INSERT INTO {tablename}
JSON '"+json+"'") the modified field is updated as expected.
> Attaching a test project that shows the problem.



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

Mime
View raw message