create class A extends Vcreate property A.id INTEGER (NOTNULL TRUE, MANDATORY TRUE)
create class B extends Vcreate property B.a LINK A (NOTNULL TRUE, MANDATORY TRUE)
insert into A (id) values (1)insert into B set a = (select from A where id = 1)
select from B let $aa = (select from A where id = 1) where a = $aaselect from B let $aa = (select from A where id = 1) where a = $aa.@rid
orientdb {db=Customers}> select from A
+----+------+------+----+|# |@RID |@CLASS|id |+----+------+------+----+|0 |#185:0|A |1 |+----+------+------+----+
1 item(s) found. Query executed in 0.002 sec(s).orientdb {db=Customers}> insert into B set a = (select from A where id = 1)
Inserted record 'B#189:0{a:#185:0} v1' in 0.004000 sec(s).
orientdb {db=Customers}> select from B
+----+------+------+------+|# |@RID |@CLASS|a |+----+------+------+------+|0 |#189:0|B |#185:0|+----+------+------+------+
orientdb {db=Customers}> select from B let $aa = (select from A where id = 1) where a = $aa
0 item(s) found. Query executed in 0.003 sec(s).
orientdb {db=Customers}> select from B let $aa = (select from A where id = 1) where a = $aa.@rid
0 item(s) found. Query executed in 0.003 sec(s).
select $aa.@rid, a from B
let $aa = (select from A where id = 1)
Can you try this one?
select $aa.@rid, a from Blet $aa = (select from A where id = 1)
--
---
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.