You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aleksey Yeschenko (JIRA)" <ji...@apache.org> on 2012/12/03 17:29:58 UTC

[jira] [Created] (CASSANDRA-5016) Can't prepare an INSERT query

Aleksey Yeschenko created CASSANDRA-5016:
--------------------------------------------

             Summary: Can't prepare an INSERT query
                 Key: CASSANDRA-5016
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5016
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 1.2.0 beta 2
            Reporter: Aleksey Yeschenko
            Assignee: Sylvain Lebresne


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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-5016) Can't prepare an INSERT query

Posted by "Aleksey Yeschenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-5016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510120#comment-13510120 ] 

Aleksey Yeschenko commented on CASSANDRA-5016:
----------------------------------------------

+1
                
> Can't prepare an INSERT query
> -----------------------------
>
>                 Key: CASSANDRA-5016
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5016
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.0 beta 2
>            Reporter: Aleksey Yeschenko
>            Assignee: Sylvain Lebresne
>             Fix For: 1.2.0 rc1
>
>         Attachments: 5016.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-5016) Can't prepare an INSERT query

Posted by "Aleksey Yeschenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-5016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aleksey Yeschenko updated CASSANDRA-5016:
-----------------------------------------

    Reviewer: iamaleksey
    
> Can't prepare an INSERT query
> -----------------------------
>
>                 Key: CASSANDRA-5016
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5016
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.0 beta 2
>            Reporter: Aleksey Yeschenko
>            Assignee: Sylvain Lebresne
>             Fix For: 1.2.0 rc1
>
>         Attachments: 5016.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-5016) Can't prepare an INSERT query

Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-5016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sylvain Lebresne updated CASSANDRA-5016:
----------------------------------------

    Attachment: 5016.patch
    
> Can't prepare an INSERT query
> -----------------------------
>
>                 Key: CASSANDRA-5016
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5016
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.0 beta 2
>            Reporter: Aleksey Yeschenko
>            Assignee: Sylvain Lebresne
>         Attachments: 5016.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira