Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Cassandra 2.2.0
-
Normal
Description
cqlsh:test> create table static_table(id int, stat int static, ord int, val text, primary key(id,ord)); cqlsh:test> insert into static_table (id,stat,ord,val) VALUES ( 1, 1, 1, '1'); cqlsh:test> delete from static_table where id=1 and ord=1 if stat != 1; Invalid syntax at line 1, char 55 delete from static_table where id=1 and ord=1 if stat != 1; ^
Same error if using =, <, <=, >= or > condition
According to thobbs the syntax should work. Plus, the error message is wrong