delete binary records via sql problem in 2.1.15
See original GitHub issueDear @luigidellaquila based on https://github.com/orientechnologies/orientdb/issues/5748 I’d tested it now in 2.1.15 when i was try to delete via delete from 15:0 command everything works well 👍
but when i was trying to delete record from a select that contains a linked field that contains row id of my blobs , delete not working yet :
delete from (select Blob from FileItem)
also when i try to write another kind query does not working and returns error
delete from cluster:BlobStorage where @rid in (select Blob from FileItem)
returns :
java.lang.ClassCastException: com.orientechnologies.orient.core.record.impl.ORecordBytes cannot be cast to com.orientechnologies.orient.core.record.impl.ODocument
for clearing what was happened i tried to run select @rid from cluster:BlobStorage
that returns nothing but when i run select from cluster:BlobStorage
returns a binary record that have @ rid and @ version and a base64 encoded string field . i’m wondered now . is it a new bug ?
how can i delete binary record via a nested select where query ? please help me to write a true delete statement .
at the last :
Actually i have an opinion for select from Binary Record in Select Command .
*it’s better select from blobstorage
returns record id and record bytes size for binary records . now select from blobstorage
(binary records) returns nothing *
thnaks
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
Hi @saeedtabrizi
I just tried this on 2.2.x branch (but I think nothing changed since 2.2.6)
And it succeeds.
Which 2.2 are you using? Did you try with latest stable?
Thanks
Luigi
closing this, if there are some more issue please reopen