Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4AC1117F09 for ; Thu, 19 Nov 2015 18:38:16 +0000 (UTC) Received: (qmail 61492 invoked by uid 500); 19 Nov 2015 18:38:11 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 61424 invoked by uid 500); 19 Nov 2015 18:38:11 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 61394 invoked by uid 99); 19 Nov 2015 18:38:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Nov 2015 18:38:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F0F6D2C1F5E for ; Thu, 19 Nov 2015 18:38:10 +0000 (UTC) Date: Thu, 19 Nov 2015 18:38:10 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10631) JSON Update not working with PreparedStatement MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15014114#comment-15014114 ] 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: 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)