You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jeremiah Jordan (JIRA)" <ji...@apache.org> on 2014/07/08 00:33:33 UTC

[jira] [Updated] (CASSANDRA-7509) conditional updates don't work from cqlsh

     [ https://issues.apache.org/jira/browse/CASSANDRA-7509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremiah Jordan updated CASSANDRA-7509:
---------------------------------------

    Description: 
{noformat}
apache-cassandra-2.1.0-rc2/bin $ ./cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 2.1.0-rc2 | CQL spec 3.1.7 | Native protocol v3]
Use HELP for help.
cqlsh> use ks1;
cqlsh:ks1> create table users(
       ... userID uuid,
       ... fname text,
       ... lname text,
       ... email text,
       ... address text,
       ... zip int,
       ... state text,
       ... PRIMARY KEY ((userID, fname), state)
       ... );
cqlsh:ks1> insert into users (userID, fname, state, email) VALUES (cfd66ccc-d857-4e90-b1e5-df98a3d40cd6, 'laura', 'ca', 'lauras@gmail.com') if not exists;
code=2200 [Invalid query] message="Conditional updates are not supported by the protocol version in use. You need to upgrade to a driver using the native protocol v2."
cqlsh:ks1>
{noformat}

  was:
{noformat}
apache-cassandra-2.1.0-rc2/bin $ ./cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 2.1.0-rc2 | CQL spec 3.1.7 | Native protocol v3]
Use HELP for help.
cqlsh> use
ks1           system        system_traces
cqlsh> use ks1
   ... ;
cqlsh:ks1> create table users(
       ... userID uuid,
       ... fname text,
       ... lname text,
       ... email text,
       ... address text,
       ... zip int,
       ... state text,
       ... PRIMARY KEY ((userID, fname), state)
       ... );
cqlsh:ks1> insert into users (userID, email) VALUES (cfd66ccc-d857-4e90-b1e5-df98a3d40cd6, 'lauras@gmail.com') if not exists;
code=2200 [Invalid query] message="Conditional updates are not supported by the protocol version in use. You need to upgrade to a driver using the native protocol v2."
cqlsh:ks1>
{noformat}


> conditional updates don't work from cqlsh
> -----------------------------------------
>
>                 Key: CASSANDRA-7509
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7509
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Jeremiah Jordan
>            Priority: Blocker
>
> {noformat}
> apache-cassandra-2.1.0-rc2/bin $ ./cqlsh
> Connected to Test Cluster at 127.0.0.1:9042.
> [cqlsh 5.0.1 | Cassandra 2.1.0-rc2 | CQL spec 3.1.7 | Native protocol v3]
> Use HELP for help.
> cqlsh> use ks1;
> cqlsh:ks1> create table users(
>        ... userID uuid,
>        ... fname text,
>        ... lname text,
>        ... email text,
>        ... address text,
>        ... zip int,
>        ... state text,
>        ... PRIMARY KEY ((userID, fname), state)
>        ... );
> cqlsh:ks1> insert into users (userID, fname, state, email) VALUES (cfd66ccc-d857-4e90-b1e5-df98a3d40cd6, 'laura', 'ca', 'lauras@gmail.com') if not exists;
> code=2200 [Invalid query] message="Conditional updates are not supported by the protocol version in use. You need to upgrade to a driver using the native protocol v2."
> cqlsh:ks1>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)