Hello,

I have an embedded list implemented 3 levels down (3 embeddings from the 
root class). I seem to have a problem removing just inserted list element. 
I followed the examples in the manual and it works on a single embedding 
fine, but in my case it just fails. See below:

// added record
update #25:0 add settings.leads.TempLead.overrideProperties = {"@type":"d", 
"@class":"PropertyOverride", "standardProperty":"utilityCompany", 
"customProperty":"utilityProvider"}

orientdb {db=Customers}> select settings.leads.TempLead.overrideProperties 
from #25:0
+----+------------------+
|#   |settings          |
+----+------------------+
|0   |[PropertyOverride]|
+----+------------------+

// trying to remove it
orientdb {db=Customers}> update #25:0 remove 
settings.leads.TempLead.overrideProperties = 
settings.leads.TempLead.overrideProperties[0]

Error: com.orientechnologies.orient.core.sql.OCommandSQLParsingException: 
Error parsing query:
update #25:0 remove settings.leads.TempLead.overrideProperties = 
settings.leads.TempLead.overrideProperties[0]
                            ^
Encountered " "." ". "" at line 1, column 29.

The "overrideProperties" property was created as EmbeddedMap
create property LeadClass.overrideProperties EMBEDDEDLIST PropertyOverride 
(NOTNULL TRUE)


Am I doing the remove command correctly? Why is it complaining about a "." 
between the 'settings' and 'leads'? It is the same exact path to the 
inserted element as was used in the "add" command above.

I'm using OrientDB 2.2.10

Thanks.

-- 

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