this ought to work:

delete edge Permissions where @rid = #15:1

the record id should not be enclosed in quotes. explains why you are 
getting a class cast exception.


On Sunday, April 19, 2015 at 2:54:05 PM UTC+5:30, Esen Sagynov wrote:
>
> delete edge Permissions where @rid = '#15:1'
>
> Why doesn't it work? I can't delete this edge in the Studio. It shows the 
> following error:
>
> java.lang.ClassCastException: java.lang.String cannot be cast to 
> com.orientechnologies.orient.core.db.record.OIdentifiable
>
> I can't do either:
>
> delete edge #15:1
>
> It shows the same error. I also cannot do:
>
> delete edge '#15:1'
>
> Which shows the following error:
>
> com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error 
> on parsing command at position #0: Class ''#15:1' was not found
>
> When I browse it, I see this edge still exists:
> select * from Permissions
> select * from Permissions
> METADATAPROPERTIES
> @rid
> @version
> @class
> out
> in
> #15:1 
> <http://localhost:2480/studio/index.html#/database/pms/browse/edit/15:1>3
> Permissions#14:2 
> <http://localhost:2480/studio/index.html#/database/pms/browse/edit/14:2>
> #13:0 
> <http://localhost:2480/studio/index.html#/database/pms/browse/edit/13:0>
> #15:2 
> <http://localhost:2480/studio/index.html#/database/pms/browse/edit/15:2>2
> Permissions#14:1 
> <http://localhost:2480/studio/index.html#/database/pms/browse/edit/14:1>
> #14:2 
> <http://localhost:2480/studio/index.html#/database/pms/browse/edit/14:2>
> #15:3 
> <http://localhost:2480/studio/index.html#/database/pms/browse/edit/15:3>7
> Permissions#14:2 
> <http://localhost:2480/studio/index.html#/database/pms/browse/edit/14:2>
> #13:0 
> <http://localhost:2480/studio/index.html#/database/pms/browse/edit/13:0>
> 10255010010005000
>
>    
> Am I doing something wrong?
>
> I'm using ODB 2.1 RC1.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to