We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CREATE CLASS Test; CREATE CLASS TestMap; CREATE PROPERTY Test.mymap LINKSET TestMap; INSERT INTO TestMap (name) VALUES ('test'); INSERT INTO TestMap (name) VALUES ('test2'); //works INSERT INTO Test SET mymap = (SELECT FROM TestMap WHERE name = 'test') select mymap:{name} from Test // [{"name": "test"}] //works UPDATE Test set mymap = (SELECT FROM TestMap WHERE name = 'test2') || mymap select mymap:{name} from Test // [{"name": "test"},{"name": "test2"}] //doesn't work UPDATE Test remove mymap = (SELECT @rid FROM TestMap WHERE name = 'test2') select mymap:{name} from Test // [{"name": "test"},{"name": "test2"}] //doesn't work UPDATE Test remove mymap = (SELECT FROM TestMap WHERE name = 'test2') select mymap:{name} from Test // [{"name": "test"},{"name": "test2"}] //works by rid only UPDATE Test remove mymap = #xx:x select mymap:{name} from Test // [{"name": "test"}]
The text was updated successfully, but these errors were encountered:
Fix UPDATE REMOVE with LINKSET and subqueries
10188be
Resolves: #8647
9bc68f1
Hi @freeart
I just pushed a fix, now the following works fine:
UPDATE Test remove mymap = (SELECT FROM TestMap WHERE name = 'test2')
Thanks
Luigi
Sorry, something went wrong.
luigidellaquila
No branches or pull requests
OrientDB Version: 3.1.0 from develop branch
Java Version: docker openjdk:8-jdk-alpine
OS: docker openjdk:8-jdk-alpine
Steps to reproduce
The text was updated successfully, but these errors were encountered: