cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-10631) JSON Update not working with PreparedStatement
Date Thu, 19 Nov 2015 18:38:10 GMT


Tyler Hobbs commented on CASSANDRA-10631:

Hmm, the unit test failures on 3.0 appear to be legit, as 3.0 doesn't show the same problems
without your patch (I checked locally).  I thought that perhaps the re-use of prepared statements
was exposing an existing bug, but changing {{cassandra.test.reuse_prepared}} to false doesn't
seem to affect the failures.  However, setting {{cassandra.test.use_prepared}} to false does
fix the test failures.  Unfortunately, I don't have time to investigate further than that.

> JSON Update not working with PreparedStatement
> ----------------------------------------------
>                 Key: CASSANDRA-10631
>                 URL:
>             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:
> 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

View raw message