You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to delete record selected with subquery, but 'WHERE' clause not working, it's ignores, all records removes instead: delete from (select expand(accounts) from #30:0) where type = 'test2' - removes all accounts from #30:0,
However same with select: where working select from (select expand(accounts) from #30:0) where type = 'test2'
Steps to reproduce the problem
CREATE CLASS Account
CREATE CLASS Profile
CREATE PROPERTY Profile.accounts LINKLIST
Insert into Account set type = 'test1'
Insert into Account set type = 'test2'
Insert into Account set type = 'test3'
Insert into Profile set accounts = [#29:0,#29:1] //29 - account cluster, change yours
delete from (select expand(accounts) from #30:0) where type = 'test2' //30 - profile cluster, change yours
select from Account // #29:0 and #29:1 not exist
select from Profile // accounts is [null,"#29:1"] in studio
Important Questions
Runninng Mode
Remote
OrientDB Version
[x ] v2.1.x - Please specify last number: 2.1.17
Operating System
[ x] Linux ubuntu 14
Java Version
[ x] 8
The text was updated successfully, but these errors were encountered:
zella
changed the title
Where clause not working in deleting links selected with subquery
Where clause not working in deleting records selected with subquery
May 20, 2016
Expected behavior and actual behavior
I try to delete record selected with subquery, but 'WHERE' clause not working, it's ignores, all records removes instead:
delete from (select expand(accounts) from #30:0) where type = 'test2'
- removes all accounts from #30:0,However same with select: where working
select from (select expand(accounts) from #30:0) where type = 'test2'
Steps to reproduce the problem
Important Questions
Runninng Mode
OrientDB Version
Operating System
Java Version
The text was updated successfully, but these errors were encountered: