-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot execute UPDATE PUT/ADD/INCREMENT #7651
Comments
i have the same problem. Passing from 2.x to 3.x ... |
This is not a temporary bug, we changed the array syntax a little bit in 3.0, now it's much more flexible and you can add elements on the left on the right with the following:
or
Full syntax here http://orientdb.com/docs/3.0.x/sql/SQL-Syntax.html#array-concatenation I know these breaking changes can be a bit annoying during the migration, but we decided to invest a lot on SQL syntax in v 3.0 and we had to sacrifice something. Please check that docs page, you will find a lot of new functionalities Thanks Luigi |
cool :) |
ops similar problem with put .... update #4:0 put b = "a" , 3 |
is just syntax sugar for
So you can just use this form Thanks Luigi |
ok thanks .... cool i like new syntax :) if you could solve the problem also with lucene ... about searching inside field arrays and fiels hashmap having a specific key-vaue it would be great ....i could complete also a new feature i have in mind from long time ahaha |
how can i use isSet() in an update query. to add only if it does not exist in array |
OrientDB Version: 3
Java Version: 7
update ... add a = #4:3
give exception Cannot execute with UPDATE PUT/ADD/INCREMENT new executor.
how can i add a item to a set/list? why i can use remove 1 element and not insert 1 element ? It is a temporary bug?
for incrrement i can use :
update 48:24 set a = a+1 instead update 48:24 increment a = 1
The text was updated successfully, but these errors were encountered: