I figured out what is causing the issue - when I inserted the record, I 
omitted explicitly setting the property value to NULL.  Instead, I left the 
property out of the insert completely, so when reading, it assumed the 
property simply doesn't exist, and therefore does not return the property.

I suppose this is correct behavior, even if it is a bit strange?


On Tuesday, July 28, 2015 at 12:41:26 PM UTC-5, Bill Blondin wrote:
>
> When querying a vertex with a null property value (e.g. Address.City where 
> City is null), it appears that the null value is stripped from the 
> response, even if the property is explicitly stated in the projection.
>
> e.g.
>
> SELECT Street1, Street2, City FROM Address WHERE @rid=#14:0
>
> If City is null, the response will only include Street1 and Street2 
> property values.
>
> How can I force the query to return a null for the City property?
>
> I have tried IfNull(City, null) which doesn't trick it to return a null. 
>  I can do IfNull(City, '') but empty string and null are not the same 
> thing, so this solution is less than acceptable.
>
>
> Thanks
>
> Bill
>

-- 

--- 
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