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

Can't prepare an INSERT query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.0 rc1
    • None
    • None
    • Normal

    Description

      Preparing an INSERT query fails with CQL3+binary protocol (maybe thrift as well, haven't checked). Preparing an equivalent UPDATE query works just fine.

      demo (id int primary key, value text)
      preparing "INSERT INTO test.demo (id, value) VALUES (?, ?)" -> 8704, Invalid definition for id, not a collection type
      prparing "UPDATE test.demo SET value = ? WHERE id = ?" -> ok

      Attachments

        1. 5016.patch
          1 kB
          Sylvain Lebresne

        Issue Links

          Activity

            People

              slebresne Sylvain Lebresne
              aleksey Aleksey Yeschenko
              Sylvain Lebresne
              Aleksey Yeschenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: