When you use projection, you loose the original RID, because the returning
document is a projection made by part of one or more records. If you want
to retrieve it you could:
- use @this.include() function (look at the documentation)
- use @this.exclude() function (look at the documentation)
- put @rid in projection. Example: select @rid as rid from ...

Lvc@


On 28 October 2014 16:26, Stefano Levante <[email protected]> wrote:

> ... also, dunno if it's related but when I try to get the document with
> this GET call (the url is correctly encoded for special chars):
> query/DBName/sql/SELECT Utente.@type, Utente.@rid, Utente.@version,
> Utente.@class, Utente.Nome, Utente.Cognome, Utente.Ruoli FROM Utente
>
> ... it return me the correct class "Utente" with all the datas but the RID
> value is "#-2:1" while in the DB the correct RID value is "#10:2019
> <http://localhost:2480/studio/index.html#/database/Test/browse/edit/10:2019>
> ".
>
> Thank you again
>
> --
>
> ---
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to