Returning Metadata in Binary Protocol?

25 views
Skip to first unread message

Bill Blondin

unread,
Aug 4, 2015, 2:50:31 PM8/4/15
to OrientDB
Is there a way to specify that I want metadata (@rid, @class) returned in all SELECT projections when communicating over Binary protocol?

Luca Garulli

unread,
Aug 4, 2015, 8:02:37 PM8/4/15
to OrientDB
Hi Bill,

You have to put @rid, @class in all your select statements. Or you can even return the entire object every time:

select from XXX


Best Regards,

Luca Garulli
Founder & CEO


On 4 August 2015 at 20:50, Bill Blondin <simplic...@gmail.com> wrote:
Is there a way to specify that I want metadata (@rid, @class) returned in all SELECT projections when communicating over Binary protocol?

--

---
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-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bill Blondin

unread,
Aug 5, 2015, 10:36:19 AM8/5/15
to orient-...@googlegroups.com
I need to use a projection like 

SELECT *, @class as +class, @rid as +rid FROM XXX

If I don't rename the @class or @rid, when combined with *, the @class and @rid are not being returned.  Is this expected behavior?  Seems odd to me?


Also, what can cause a NullPointerException when combining * with @class or @rid?  I am just starting to see this issue today - wasn't seeing it before.  It's some kind of data issue - when I clear all the data on my tables and insert new data, the error goes away.

Thanks
Reply all
Reply to author
Forward
0 new messages