Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10631

JSON Update not working with PreparedStatement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.4, 3.0.1
    • Legacy/CQL
    • None
    • Windows 7, Datastax Java Driver 2.2.0-rc2

    • Normal

    Description

      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.

      Attachments

        1. test-json.zip
          3 kB
          Henrik Karlsson

        Activity

          People

            slebresne Sylvain Lebresne
            heka Henrik Karlsson
            Sylvain Lebresne
            Tom Hobbs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: