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

Native protocol prepared INSERT broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • 1.2.0 rc1
    • None
    • None
    • Cassandra 1.2.0-beta3-SNAPSHOT (b86f75d)

    • Normal

    Description

      b4f2f201 breaks prepared inserts via the native protocol (a regression from 1.2.0-beta2).

      cassandra.Exec("INSERT INTO tests (id, content) VALUES (?, ?)", 1, "test")
      
      Error: Invalid definition for id, not a collection type
      
      cqlsh> CREATE KEYSPACE test WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
      cqlsh> USE test;
      cqlsh:test> CREATE TABLE tests (id bigint PRIMARY KEY, content text);
      

      Repro code: https://gist.github.com/edafe5383c81c22aed5a

      Attachments

        Issue Links

          Activity

            People

              slebresne Sylvain Lebresne
              titanous Jonathan Rudenberg
              Sylvain Lebresne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: